summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-21 06:31:05 +0000
committerChris Lattner <sabre@nondot.org>2008-07-21 06:31:05 +0000
commitf1c149db9ff992a03917e9461323be9d66fca7a9 (patch)
tree509e803e81e5da78d82d5d88c48e6b69ccee6183 /clang/lib/CodeGen
parent12bf571fa8f3c306bd65978006613260370edabb (diff)
downloadbcm5719-llvm-f1c149db9ff992a03917e9461323be9d66fca7a9.tar.gz
bcm5719-llvm-f1c149db9ff992a03917e9461323be9d66fca7a9.zip
don't pass in null as the Name for GenerateClassStructure,
it goes and makes std::strings out of them, which is not defined. llvm-svn: 53843
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index bb90bce1ebf..57c021f0642 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud