mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-27 02:31:09 +00:00
Fix uninitialized variable warning in DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3b54e2e50
commit
67cc1dc995
@ -205,9 +205,9 @@ static std::pair<StringRef, StringRef> split(StringRef Str, char Separator) {
|
||||
return Split;
|
||||
}
|
||||
|
||||
/// Get an unsinged integer, including error checks.
|
||||
/// Get an unsigned integer, including error checks.
|
||||
static unsigned getInt(StringRef R) {
|
||||
unsigned Result;
|
||||
unsigned Result = 0;
|
||||
bool error = R.getAsInteger(10, Result); (void)error;
|
||||
assert(!error && "not a number, or does not fit in an unsigned int");
|
||||
return Result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user