]> granicus.if.org Git - clang/commitdiff
Remove a warning when this file is compiled optimized.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 30 Apr 2009 23:08:58 +0000 (23:08 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 30 Apr 2009 23:08:58 +0000 (23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70518 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGObjCMac.cpp

index 1dfa9cd4115c853f53a7c0a719ac021c505ed33b..d7ced5ab5a74cfdb6b493f52634d7fe520f4167c 100644 (file)
@@ -4979,7 +4979,7 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
   // needed to find the message name.
   const CGFunctionInfo &FnInfo = Types.getFunctionInfo(ResultType, 
                                         llvm::SmallVector<QualType, 16>());
-  llvm::Constant *Fn;
+  llvm::Constant *Fn = 0;
   std::string Name("\01l_");
   if (CGM.ReturnTypeUsesSret(FnInfo)) {
 #if 0
@@ -5034,6 +5034,7 @@ CodeGen::RValue CGObjCNonFragileABIMac::EmitMessageSend(
       Name += "objc_msgSend_fixup";
     }
   }
+  assert(Fn && "CGObjCNonFragileABIMac::EmitMessageSend");
   Name += '_';
   std::string SelName(Sel.getAsString());
   // Replace all ':' in selector name with '_'  ouch!