From 487375e9a2c9bd64869aab778ef26770ed4bef67 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 29 Jul 2009 18:55:55 +0000 Subject: Move ConstantExpr to 2.5 API. llvm-svn: 77494 --- llvm/lib/CodeGen/ShadowStackGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/ShadowStackGC.cpp') diff --git a/llvm/lib/CodeGen/ShadowStackGC.cpp b/llvm/lib/CodeGen/ShadowStackGC.cpp index 801a99bdb07..08d6720701a 100644 --- a/llvm/lib/CodeGen/ShadowStackGC.cpp +++ b/llvm/lib/CodeGen/ShadowStackGC.cpp @@ -238,7 +238,7 @@ Constant *ShadowStackGC::GetFrameMap(Function &F) { Constant *GEPIndices[2] = { ConstantInt::get(Type::Int32Ty, 0), ConstantInt::get(Type::Int32Ty, 0) }; - return Context.getConstantExprGetElementPtr(GV, GEPIndices, 2); + return ConstantExpr::getGetElementPtr(GV, GEPIndices, 2); } const Type* ShadowStackGC::GetConcreteStackEntryType(Function &F) { -- cgit v1.2.3