diff options
author | David Greene <greened@obbligato.org> | 2007-08-06 15:09:17 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2007-08-06 15:09:17 +0000 |
commit | fd12418315bcfd1189b8590abb5f5ffe51d522b6 (patch) | |
tree | 79e5e88b9daae950bf57d9a809a4d2ff553de36c /lib/Transforms/Scalar/LowerGC.cpp | |
parent | 646d76b5e1941b8234cb86b5f9544c46c1fdc168 (diff) | |
download | external_llvm-fd12418315bcfd1189b8590abb5f5ffe51d522b6.zip external_llvm-fd12418315bcfd1189b8590abb5f5ffe51d522b6.tar.gz external_llvm-fd12418315bcfd1189b8590abb5f5ffe51d522b6.tar.bz2 |
Make this code more efficient.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LowerGC.cpp')
-rw-r--r-- | lib/Transforms/Scalar/LowerGC.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp index a3c4a41..d945609 100644 --- a/lib/Transforms/Scalar/LowerGC.cpp +++ b/lib/Transforms/Scalar/LowerGC.cpp @@ -205,11 +205,11 @@ bool LowerGC::runOnFunction(Function &F) { // conversion from Use* to Value*. The conversion // from Use to Value * is not useful because the // memory for Value * won't be contiguous. - SmallVector<Value *, 2> Args; - Args.push_back(CI->getOperand(1)); - Args.push_back(CI->getOperand(2)); - CallInst *NC = new CallInst(GCRead, Args.begin(), - Args.end(), + Value* Args[] = { + CI->getOperand(1), + CI->getOperand(2) + }; + CallInst *NC = new CallInst(GCRead, Args, Args + 2, CI->getName(), CI); // These functions only deal with ptr type results so BitCast // is the correct kind of cast (no-op cast). |