diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-19 07:41:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-19 07:41:31 +0000 |
commit | 00f59da1dfa697982dad9937d1339d7c0e438ad1 (patch) | |
tree | 60aeb4232105dcd444781e6dbb873226cd6d8f05 /tools/bugpoint | |
parent | ec1f752ae49b053231288a8c429d076b5855fc7c (diff) | |
download | external_llvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.zip external_llvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.tar.gz external_llvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.tar.bz2 |
remove use of deprecated apis
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34418 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 11cbbc2..534aa28 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -702,8 +702,7 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // GetElementPtr *funcName, ulong 0, ulong 0 std::vector<Constant*> GEPargs(2,Constant::getNullValue(Type::Int32Ty)); - Value *GEP = - ConstantExpr::getGetElementPtr(funcName, GEPargs); + Value *GEP = ConstantExpr::getGetElementPtr(funcName, &GEPargs[0], 2); std::vector<Value*> ResolverArgs; ResolverArgs.push_back(GEP); |