]> granicus.if.org Git - clang/commitdiff
don't pass in null as the Name for GenerateClassStructure,
authorChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 06:31:05 +0000 (06:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Jul 2008 06:31:05 +0000 (06:31 +0000)
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

lib/CodeGen/CGObjCGNU.cpp
lib/Sema/SemaExprObjC.cpp

index bb90bce1ebfc01965de2c9f0758a2e70f74d4b78..57c021f064227b46f926799b6028a5e13618599b 100644 (file)
@@ -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,
index bed9d5d306aeafbf064eadf7d75f87c17a2274ad..99a7afdc1af3250e7a29b1f34dbe8d0eb36f6944 100644 (file)
@@ -217,8 +217,7 @@ Sema::ExprResult Sema::ActOnClassMessage(
 // ActOnInstanceMessage - used for both unary and keyword messages.
 // ArgExprs is optional - if it is present, the number of expressions
 // is obtained from Sel.getNumArgs().
-Sema::ExprResult Sema::ActOnInstanceMessage(
-  ExprTy *receiver, Selector Sel,
+Sema::ExprResult Sema::ActOnInstanceMessage(ExprTy *receiver, Selector Sel,
   SourceLocation lbrac, SourceLocation rbrac, ExprTy **Args, unsigned NumArgs) 
 {
   assert(receiver && "missing receiver expression");