summaryrefslogtreecommitdiff
path: root/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-19 07:41:31 +0000
committerChris Lattner <sabre@nondot.org>2007-02-19 07:41:31 +0000
commit00f59da1dfa697982dad9937d1339d7c0e438ad1 (patch)
tree60aeb4232105dcd444781e6dbb873226cd6d8f05 /tools/bugpoint/Miscompilation.cpp
parentec1f752ae49b053231288a8c429d076b5855fc7c (diff)
downloadllvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.tar.gz
llvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.tar.bz2
llvm-00f59da1dfa697982dad9937d1339d7c0e438ad1.tar.xz
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/Miscompilation.cpp')
-rw-r--r--tools/bugpoint/Miscompilation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 11cbbc20f8..534aa28533 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);