mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
931e345e76
commit
ce80051170
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user