diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-13 06:05:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-13 06:05:43 +0000 |
commit | 10ac377f7cbcf722ca9dd46865526f667213af74 (patch) | |
tree | 0922f345fb7a37d1b7c7d1f472e2fd5040e3528b /tools/bugpoint/Miscompilation.cpp | |
parent | cf3d0610994cdb3ccb3cf030773c713cc07c1e08 (diff) | |
download | external_llvm-10ac377f7cbcf722ca9dd46865526f667213af74.zip external_llvm-10ac377f7cbcf722ca9dd46865526f667213af74.tar.gz external_llvm-10ac377f7cbcf722ca9dd46865526f667213af74.tar.bz2 |
eliminate use of vector-related ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index aed90cb..11cbbc2 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -663,7 +663,8 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // Call the old main function and return its result BasicBlock *BB = new BasicBlock("entry", newMain); - CallInst *call = new CallInst(oldMainProto, args, "", BB); + CallInst *call = new CallInst(oldMainProto, &args[0], args.size(), + "", BB); // If the type of old function wasn't void, return value of call new ReturnInst(call, BB); @@ -734,7 +735,8 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // Resolve the call to function F via the JIT API: // // call resolver(GetElementPtr...) - CallInst *Resolver = new CallInst(resolverFunc, ResolverArgs, + CallInst *Resolver = new CallInst(resolverFunc, &ResolverArgs[0], + ResolverArgs.size(), "resolver", LookupBB); // cast the result from the resolver to correctly-typed function CastInst *CastedResolver = new BitCastInst(Resolver, @@ -756,10 +758,11 @@ static void CleanupAndPrepareModules(BugDriver &BD, Module *&Test, // Pass on the arguments to the real function, return its result if (F->getReturnType() == Type::VoidTy) { - new CallInst(FuncPtr, Args, "", DoCallBB); + new CallInst(FuncPtr, &Args[0], Args.size(), "", DoCallBB); new ReturnInst(DoCallBB); } else { - CallInst *Call = new CallInst(FuncPtr, Args, "retval", DoCallBB); + CallInst *Call = new CallInst(FuncPtr, &Args[0], Args.size(), + "retval", DoCallBB); new ReturnInst(Call, DoCallBB); } |