[llvm-commits] [llvm] r137479 - /llvm/trunk/lib/VMCore/Type.cpp

Chris Lattner sabre at nondot.org
Fri Aug 12 11:03:30 PDT 2011


Author: lattner
Date: Fri Aug 12 13:03:30 2011
New Revision: 137479

URL: http://llvm.org/viewvc/llvm-project?rev=137479&view=rev
Log:
forward to the correct constructor.

Modified:
    llvm/trunk/lib/VMCore/Type.cpp

Modified: llvm/trunk/lib/VMCore/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Type.cpp?rev=137479&r1=137478&r2=137479&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Type.cpp (original)
+++ llvm/trunk/lib/VMCore/Type.cpp Fri Aug 12 13:03:30 2011
@@ -487,7 +487,7 @@
 
 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) {
-  return create(Context, ArrayRef<Type*>(), StringRef());
+  return create(Context, StringRef());
 }
 
 
@@ -530,7 +530,6 @@
 
 
 
-
 StructType *StructType::createNamed(LLVMContext &Context, StringRef Name,
                                     ArrayRef<Type*> Elements, bool isPacked) {
   StructType *ST = createNamed(Context, Name);





More information about the llvm-commits mailing list