Fix uninitialized variable warning in DataLayout.

llvm-svn: 198702
This commit is contained in:
Cameron McInally 2014-01-07 19:51:38 +00:00
parent 170a6e7944
commit 8af9eac331
1 changed files with 2 additions and 2 deletions

View File

@ -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;