aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-upgrade
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2007-08-15 17:58:51 +0000
committerDavid Greene <greened@obbligato.org>2007-08-15 17:58:51 +0000
commit26b3633ba1ff4c701f552fc62befaedbbbe6beb1 (patch)
tree5905ecdc65427145c066fec645d0b053fb4659bd /tools/llvm-upgrade
parente844e47bf4a3b0a89b8590a08cea48d76b2bb29e (diff)
downloadexternal_llvm-26b3633ba1ff4c701f552fc62befaedbbbe6beb1.zip
external_llvm-26b3633ba1ff4c701f552fc62befaedbbbe6beb1.tar.gz
external_llvm-26b3633ba1ff4c701f552fc62befaedbbbe6beb1.tar.bz2
Update .cvs file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade')
-rw-r--r--tools/llvm-upgrade/UpgradeParser.y.cvs9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y.cvs b/tools/llvm-upgrade/UpgradeParser.y.cvs
index 8fe5498..251cc77 100644
--- a/tools/llvm-upgrade/UpgradeParser.y.cvs
+++ b/tools/llvm-upgrade/UpgradeParser.y.cvs
@@ -1723,11 +1723,12 @@ Module* UpgradeAssembly(const std::string &infile, std::istream& in,
while (!F->use_empty()) {
CallInst* CI = cast<CallInst>(F->use_back());
- SmallVector<Value *, 2> Args;
- Args.push_back(new AllocaInst(ArgTy, 0, "vacopy.fix.1", CI));
- Args.push_back(new AllocaInst(ArgTy, 0, "vacopy.fix.2", CI));
+ Value *Args[2] = {
+ new AllocaInst(ArgTy, 0, "vacopy.fix.1", CI),
+ new AllocaInst(ArgTy, 0, "vacopy.fix.2", CI)
+ };
new StoreInst(CI->getOperand(1), Args[1], CI);
- new CallInst(NF, Args.begin(), Args.end(), "", CI);
+ new CallInst(NF, Args, Args + 2, "", CI);
Value* foo = new LoadInst(Args[0], "vacopy.fix.3", CI);
CI->replaceAllUsesWith(foo);
CI->getParent()->getInstList().erase(CI);