aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-19 05:24:56 +0000
committerChris Lattner <sabre@nondot.org>2008-03-19 05:24:56 +0000
commit572cf09ae8a78af1c56d40b016ec4cf1837163ac (patch)
tree74a71301bb1e783cca4c680cfce7c6dc250e6cb4 /lib/CodeGen/CGObjCGNU.cpp
parent36b6a0a63e87803a85080c639ad8b61e8bb5f9ee (diff)
simplify code by using the variadic StructType::get method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index f0d6f554d5..1cc5cffb82 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -50,8 +50,8 @@ llvm::Value *CGObjCGNU::generateMessageSend(llvm::LLVMFoldingBuilder &Builder,
// Get the selector Type.
const llvm::Type *PtrToInt8Ty =
llvm::PointerType::getUnqual(llvm::Type::Int8Ty);
- std::vector<const llvm::Type*> Str2(2, PtrToInt8Ty);
- const llvm::Type *SelStructTy = llvm::StructType::get(Str2);
+ const llvm::Type *SelStructTy =
+ llvm::StructType::get(PtrToInt8Ty, PtrToInt8Ty, NULL);
const llvm::Type *SelTy = llvm::PointerType::getUnqual(SelStructTy);
// Look up the selector.