mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
PR5207: Make APInt::set(), APInt::clear() and APInt::flip() return void.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -875,8 +875,9 @@ bool llvm::ComputeMultiple(Value *V, unsigned Base, Value *&Multiple,
|
||||
// Turn Op0 << Op1 into Op0 * 2^Op1
|
||||
APInt Op1Int = Op1CI->getValue();
|
||||
uint64_t BitToSet = Op1Int.getLimitedValue(Op1Int.getBitWidth() - 1);
|
||||
Op1 = ConstantInt::get(V->getContext(),
|
||||
APInt(Op1Int.getBitWidth(), 0).set(BitToSet));
|
||||
APInt API(Op1Int.getBitWidth(), 0);
|
||||
API.set(BitToSet);
|
||||
Op1 = ConstantInt::get(V->getContext(), API);
|
||||
}
|
||||
|
||||
Value *Mul0 = NULL;
|
||||
|
Reference in New Issue
Block a user