forward to the correct constructor.

llvm-svn: 137479
This commit is contained in:
Chris Lattner 2011-08-12 18:03:30 +00:00
parent db4374a28a
commit 2f50231c10
1 changed files with 2 additions and 3 deletions

View File

@ -487,7 +487,7 @@ StructType *StructType::get(Type *type, ...) {
StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements,
StringRef Name, bool isPacked) {
StructType *ST = createNamed(Context, Name);
StructType *ST = create(Context, Name);
ST->setBody(Elements, isPacked);
return ST;
}
@ -497,7 +497,7 @@ StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
}
StructType *StructType::create(LLVMContext &Context) {
return create(Context, ArrayRef<Type*>(), StringRef());
return create(Context, StringRef());
}
@ -530,7 +530,6 @@ StructType *StructType::create(StringRef Name, Type *type, ...) {
StructType *StructType::createNamed(LLVMContext &Context, StringRef Name,
ArrayRef<Type*> Elements, bool isPacked) {
StructType *ST = createNamed(Context, Name);