forward to the correct constructor.
authorChris Lattner <sabre@nondot.org>
Fri, 12 Aug 2011 18:03:30 +0000 (18:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Aug 2011 18:03:30 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137479 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Type.cpp

index 51e6006eee419aaf727d167429344b654e5596a4..decb50cd4d2769e9bb9921aa131af72b8ca9241b 100644 (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);