diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-21 06:31:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-21 06:31:05 +0000 |
commit | 1565e0364b05d163640dd2b6feed43bae67df4fd (patch) | |
tree | 406901c49068b2a98d4368349590afafd31fefd3 /lib/CodeGen/CGObjCGNU.cpp | |
parent | 0b2f7ea2794bc9e8d2f8328d78d61f8ec55dd023 (diff) |
don't pass in null as the Name for GenerateClassStructure,
it goes and makes std::strings out of them, which is not
defined.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53843 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index bb90bce1eb..57c021f064 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -514,8 +514,7 @@ llvm::Constant *CGObjCGNU::GenerateClassStructure( Elements.push_back(llvm::ConstantExpr::getBitCast(Protocols, PtrTy)); Elements.push_back(NullP); // Create an instance of the structure - return MakeGlobal(ClassTy, Elements, - SymbolNameForClass(Name)); + return MakeGlobal(ClassTy, Elements, SymbolNameForClass(Name)); } llvm::Constant *CGObjCGNU::GenerateProtocolMethodList( @@ -669,7 +668,7 @@ void CGObjCGNU::GenerateClass( IvarOffsets); //Generate metaclass for class methods llvm::Constant *MetaClassStruct = GenerateClassStructure(NULLPtr, - NULLPtr, 0x2L, /*name*/0, 0, Zeros[0], GenerateIvarList( + NULLPtr, 0x2L, /*name*/"", 0, Zeros[0], GenerateIvarList( empty, empty, empty), ClassMethodList, NULLPtr); // Generate the class structure llvm::Constant *ClassStruct = GenerateClassStructure(MetaClassStruct, |