Simplify IRBuilder::CreateCall* by using ArrayRef+initializer_list/braced init only
[oota-llvm.git] / lib / Transforms / Scalar / RewriteStatepointsForGC.cpp
index 6362f55140f7ab9e8216b85476ea5b1cea1b82e1..a9c17fdeb429ed31c1cc44e8bfcbe30c9b61df4b 100644 (file)
@@ -1118,8 +1118,8 @@ static void CreateGCRelocates(ArrayRef<llvm::Value *> LiveVariables,
         LiveStart + find_index(LiveVariables, LiveVariables[i]));
 
     // only specify a debug name if we can give a useful one
-    Value *Reloc = Builder.CreateCall3(
-        GCRelocateDecl, StatepointToken, BaseIdx, LiveIdx,
+    Value *Reloc = Builder.CreateCall(
+        GCRelocateDecl, {StatepointToken, BaseIdx, LiveIdx},
         LiveVariables[i]->hasName() ? LiveVariables[i]->getName() + ".relocated"
                                     : "");
     // Trick CodeGen into thinking there are lots of free registers at this