projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b54e2
)
Fix uninitialized variable warning in DataLayout.
author
Cameron McInally
<cameron.mcinally@nyu.edu>
Tue, 7 Jan 2014 19:51:38 +0000
(19:51 +0000)
committer
Cameron McInally
<cameron.mcinally@nyu.edu>
Tue, 7 Jan 2014 19:51:38 +0000
(19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198702
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/DataLayout.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/DataLayout.cpp
b/lib/IR/DataLayout.cpp
index c9e95b40215607cacba0bae053cdf49934d72198..6f32be08c5ba8029559c78a6d1d647c07ee0e49b 100644
(file)
--- a/
lib/IR/DataLayout.cpp
+++ b/
lib/IR/DataLayout.cpp
@@
-205,9
+205,9
@@
static std::pair<StringRef, StringRef> split(StringRef Str, char Separator) {
return Split;
}
-/// Get an unsi
ng
ed integer, including error checks.
+/// Get an unsi
gn
ed 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;