mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
elimiante a temporary vector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
55eb1c47de
commit
d917fe5692
@ -245,9 +245,7 @@ Constant *llvm::ConstantFoldInstOperands(const Instruction* I,
|
||||
if (Constant *C = SymbolicallyEvaluateGEP(Ops, NumOps, I->getType(), TD))
|
||||
return C;
|
||||
|
||||
return ConstantExpr::getGetElementPtr(Ops[0],
|
||||
std::vector<Constant*>(Ops+1,
|
||||
Ops+NumOps));
|
||||
return ConstantExpr::getGetElementPtr(Ops[0], Ops+1, NumOps-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user