mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 06:33:21 +00:00
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e679288a30
commit
0e026de6ac
@ -3844,7 +3844,7 @@ Instruction *InstCombiner::PromoteCastOfAllocation(CastInst &CI,
|
||||
} else if (isa<Instruction>(NumElements) &&
|
||||
cast<Instruction>(NumElements)->getOpcode() == Instruction::Mul){
|
||||
BinaryOperator *BO = cast<BinaryOperator>(NumElements);
|
||||
if (ConstantUInt *Scale = cast<ConstantUInt>(BO->getOperand(1))) {
|
||||
if (ConstantUInt *Scale = dyn_cast<ConstantUInt>(BO->getOperand(1))) {
|
||||
// This value is scaled by 'Scale'.
|
||||
NumElements = BO->getOperand(0);
|
||||
ArraySizeScale = Scale->getValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user