diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-12 02:22:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-12 02:22:30 +0000 |
commit | ce800511701135ed86845b451693a248c83a7973 (patch) | |
tree | 85f6d300098cb643ccd09f264202ff4001b2ff99 /lib/Analysis/ConstantFolding.cpp | |
parent | 931e345e76e75391d2a7c96530e305f802b5429d (diff) |
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index dda1fbad64..37cda02210 100644 --- 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); |