mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Fix a minor bug in my patch yesterday that broken ConstProp/bswap.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5b84f92bf
commit
ad58eb3434
@ -210,7 +210,7 @@ Constant *llvm::ConstantFoldInstOperands(const Instruction* I,
|
||||
case Instruction::Call:
|
||||
if (Function *F = dyn_cast<Function>(Ops[0]))
|
||||
if (canConstantFoldCallTo(F))
|
||||
return ConstantFoldCall(F, Ops+1, NumOps);
|
||||
return ConstantFoldCall(F, Ops+1, NumOps-1);
|
||||
return 0;
|
||||
case Instruction::ICmp:
|
||||
case Instruction::FCmp:
|
||||
|
Loading…
x
Reference in New Issue
Block a user