diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-16 22:40:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-16 22:40:51 +0000 |
commit | 46b3d30bf63fa1e48c1109a38d9ad9cada23bd20 (patch) | |
tree | 48e3da615f6d871fde7d07341f3b85a05d3c1aa3 /llvm/lib/Transforms/Scalar | |
parent | a9a988005b50c2445d4a687b202c0251ac4b4780 (diff) | |
download | bcm5719-llvm-46b3d30bf63fa1e48c1109a38d9ad9cada23bd20.tar.gz bcm5719-llvm-46b3d30bf63fa1e48c1109a38d9ad9cada23bd20.zip |
Change the interface to constant expressions to allow automatic folding
llvm-svn: 5793
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 38494f206d1..70fc952891f 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -1011,7 +1011,7 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) { Indices.push_back(cast<Constant>(*I)); if (I == E) { // If they are all constants... - ConstantExpr *CE = + Constant *CE = ConstantExpr::getGetElementPtr(ConstantPointerRef::get(GV), Indices); // Replace all uses of the GEP with the new constexpr... |