summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-13 06:03:48 +0000
committerChris Lattner <sabre@nondot.org>2007-02-13 06:03:48 +0000
commit858d97347e2be372fef9296fc4414d34b49a4dc5 (patch)
treee91476dbc5367e7834405b41699410023f563742 /tools
parent990b849abc9481b8c7a482019cd0d95fe2f2a3ea (diff)
downloadllvm-858d97347e2be372fef9296fc4414d34b49a4dc5.tar.gz
llvm-858d97347e2be372fef9296fc4414d34b49a4dc5.tar.bz2
llvm-858d97347e2be372fef9296fc4414d34b49a4dc5.tar.xz
remove use of vector-related ctors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-upgrade/UpgradeParser.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y
index 124fb6a720..fdcff5b071 100644
--- a/tools/llvm-upgrade/UpgradeParser.y
+++ b/tools/llvm-upgrade/UpgradeParser.y
@@ -1222,7 +1222,7 @@ upgradeIntrinsicCall(const Type* RetTy, const ValID &ID,
const PointerType *PFTy = PointerType::get(FTy);
Value* Func = getVal(PFTy, ID);
Args[0] = new BitCastInst(Args[0], PtrTy, makeNameUnique("va"), CurBB);
- return new CallInst(Func, Args);
+ return new CallInst(Func, &Args[0], Args.size());
} else if (Name == "llvm.va_copy") {
if (Args.size() != 2)
error("Invalid prototype for " + Name + " prototype");
@@ -1235,7 +1235,7 @@ upgradeIntrinsicCall(const Type* RetTy, const ValID &ID,
std::string InstName1(makeNameUnique("va1"));
Args[0] = new BitCastInst(Args[0], PtrTy, InstName0, CurBB);
Args[1] = new BitCastInst(Args[1], PtrTy, InstName1, CurBB);
- return new CallInst(Func, Args);
+ return new CallInst(Func, &Args[0], Args.size());
}
}
return 0;
@@ -2978,7 +2978,7 @@ BBTerminatorInst
// Create the call node...
if (!$6) { // Has no arguments?
- $$ = new InvokeInst(V, Normal, Except, std::vector<Value*>());
+ $$ = new InvokeInst(V, Normal, Except, 0, 0);
} else { // Has arguments?
// Loop through FunctionType's arguments and ensure they are specified
// correctly!
@@ -2998,7 +2998,7 @@ BBTerminatorInst
if (I != E || (ArgI != ArgE && !Ty->isVarArg()))
error("Invalid number of parameters detected");
- $$ = new InvokeInst(V, Normal, Except, Args);
+ $$ = new InvokeInst(V, Normal, Except, &Args[0], Args.size());
}
cast<InvokeInst>($$)->setCallingConv(upgradeCallingConv($2));
delete $3.PAT;
@@ -3379,7 +3379,7 @@ InstVal
}
// Create the call instruction
- CallInst *CI = new CallInst(V, Args);
+ CallInst *CI = new CallInst(V, &Args[0], Args.size());
CI->setTailCall($1);
CI->setCallingConv(upgradeCallingConv($2));
$$.I = CI;