diff options
author | Cameron McInally <cameron.mcinally@nyu.edu> | 2014-01-07 19:51:38 +0000 |
---|---|---|
committer | Cameron McInally <cameron.mcinally@nyu.edu> | 2014-01-07 19:51:38 +0000 |
commit | 8af9eac331adf50c41bcb6f2333d2119fa689283 (patch) | |
tree | fe8b6cf5a8e1a4e7932cc86ff732ec546569679f /llvm/lib/IR/DataLayout.cpp | |
parent | 170a6e7944efbfe8129702cf553531ae34028698 (diff) | |
download | bcm5719-llvm-8af9eac331adf50c41bcb6f2333d2119fa689283.tar.gz bcm5719-llvm-8af9eac331adf50c41bcb6f2333d2119fa689283.zip |
Fix uninitialized variable warning in DataLayout.
llvm-svn: 198702
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r-- | llvm/lib/IR/DataLayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp index c9e95b40215..6f32be08c5b 100644 --- a/llvm/lib/IR/DataLayout.cpp +++ b/llvm/lib/IR/DataLayout.cpp @@ -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; |