summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LowerGC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/LowerGC.cpp')
-rw-r--r--lib/Transforms/Scalar/LowerGC.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Transforms/Scalar/LowerGC.cpp b/lib/Transforms/Scalar/LowerGC.cpp
index a3c4a41086..d9456094fc 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).