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:
931e345
)
Minor code simplification.
author
Dan Gohman
<gohman@apple.com>
Mon, 12 Apr 2010 02:22:30 +0000
(
02:22
+0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 12 Apr 2010 02:22:30 +0000
(
02:22
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101009
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/ConstantFolding.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/ConstantFolding.cpp
b/lib/Analysis/ConstantFolding.cpp
index dda1fbad64f01f2284545c4ce0cc459eb5bbfadb..37cda02210261059a5a0276b91d5b42cd4b03289 100644
(file)
--- a/
lib/Analysis/ConstantFolding.cpp
+++ b/
lib/Analysis/ConstantFolding.cpp
@@
-401,7
+401,7
@@
static Constant *FoldReinterpretLoadFromConstPtr(Constant *C,
APInt ResultVal = APInt(IntType->getBitWidth(), RawBytes[BytesLoaded-1]);
for (unsigned i = 1; i != BytesLoaded; ++i) {
ResultVal <<= 8;
- ResultVal |=
APInt(IntType->getBitWidth(), RawBytes[BytesLoaded-1-i])
;
+ ResultVal |=
RawBytes[BytesLoaded-1-i]
;
}
return ConstantInt::get(IntType->getContext(), ResultVal);