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 | f1e40e60d36d7e591e5bc432486ab34639a8953d (patch) | |
tree | 6a16518ea061e1a2d9438fce1de1b8a906a906f4 /llvm/lib/Analysis/ConstantFolding.cpp | |
parent | fa5ad797e30e80db298625feadabe6580d83a023 (diff) | |
download | bcm5719-llvm-f1e40e60d36d7e591e5bc432486ab34639a8953d.tar.gz bcm5719-llvm-f1e40e60d36d7e591e5bc432486ab34639a8953d.zip |
Minor code simplification.
llvm-svn: 101009
Diffstat (limited to 'llvm/lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | llvm/lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp index dda1fbad64f..37cda022102 100644 --- a/llvm/lib/Analysis/ConstantFolding.cpp +++ b/llvm/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); |