From 46b3d30bf63fa1e48c1109a38d9ad9cada23bd20 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 16 Apr 2003 22:40:51 +0000 Subject: Change the interface to constant expressions to allow automatic folding llvm-svn: 5793 --- llvm/lib/Transforms/IPO/FunctionResolution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/FunctionResolution.cpp') diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp index 734b62b9dc2..932cdf46e89 100644 --- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp +++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp @@ -207,7 +207,7 @@ static bool ResolveGlobalVariables(Module &M, std::vector 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) -- cgit v1.2.3