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 | fb242b6edc3d92daf49c7d5b2c19d81447aa61bc (patch) | |
tree | 8e48ceab7009309f3432c6b4c31a295e25cfed5e /lib/Transforms/IPO/FunctionResolution.cpp | |
parent | dabaa46c66dd20a7f10ac8f7813f1c6d532e4195 (diff) |
Change the interface to constant expressions to allow automatic folding
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionResolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 734b62b9dc..932cdf46e8 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -207,7 +207,7 @@ static bool ResolveGlobalVariables(Module &M, std::vector<Constant*> Args; Args.push_back(Constant::getNullValue(Type::LongTy)); Args.push_back(Constant::getNullValue(Type::LongTy)); - ConstantExpr *Replacement = + Constant *Replacement = ConstantExpr::getGetElementPtr(ConstantPointerRef::get(Concrete), Args); for (unsigned i = 0; i != Globals.size(); ++i) |