simplify some builder calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50694 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjCEtoile.cpp b/lib/CodeGen/CGObjCEtoile.cpp
index 4ff48f1..d5023b4 100644
--- a/lib/CodeGen/CGObjCEtoile.cpp
+++ b/lib/CodeGen/CGObjCEtoile.cpp
@@ -131,10 +131,7 @@
PtrToInt8Ty,
PtrToInt8Ty,
NULL);
- llvm::SmallVector<llvm::Value*, 2> Args;
- Args.push_back(SelName);
- Args.push_back(SelTypes);
- return Builder.CreateCall(SelFunction, Args.begin(), Args.end());
+ return Builder.CreateCall2(SelFunction, SelName, SelTypes);
}
static void SetField(llvm::IRBuilder &Builder, llvm::Value *Structure,
@@ -180,9 +177,8 @@
LookupArgs.push_back(Receiver);
LookupArgs.push_back(cmd);
LookupArgs.push_back(Sender);
- llvm::Value *Slot = Builder.CreateCall(Lookup,
- LookupArgs.begin(),
- LookupArgs.end());
+ llvm::Value *Slot = Builder.CreateCall(Lookup, LookupArgs.begin(),
+ LookupArgs.end());
// Create the call structure
llvm::Value *Call = Builder.CreateAlloca(CallTy);