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 | 77b2accbcac4bb19f77b97a683904418c5464bd5 (patch) | |
| tree | ea9c1fe54ff1a6ead5884a8c3d321b77024323e7 /llvm/lib/Transforms | |
| parent | c7ba2257058850027821d726618f3cb2e37ef021 (diff) | |
| download | bcm5719-llvm-77b2accbcac4bb19f77b97a683904418c5464bd5.tar.gz bcm5719-llvm-77b2accbcac4bb19f77b97a683904418c5464bd5.zip | |
Make this code more efficient.
llvm-svn: 40861
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LowerGC.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/LowerGC.cpp b/llvm/lib/Transforms/Scalar/LowerGC.cpp index a3c4a41086f..d9456094fc8 100644 --- a/llvm/lib/Transforms/Scalar/LowerGC.cpp +++ b/llvm/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). |

