[cfe-commits] r70518 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Fariborz Jahanian
fjahanian at apple.com
Thu Apr 30 16:08:58 PDT 2009
Author: fjahanian
Date: Thu Apr 30 18:08:58 2009
New Revision: 70518
URL: http://llvm.org/viewvc/llvm-project?rev=70518&view=rev
Log:
Remove a warning when this file is compiled optimized.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=70518&r1=70517&r2=70518&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Thu Apr 30 18:08:58 2009
@@ -4979,7 +4979,7 @@
// 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 @@
Name += "objc_msgSend_fixup";
}
}
+ assert(Fn && "CGObjCNonFragileABIMac::EmitMessageSend");
Name += '_';
std::string SelName(Sel.getAsString());
// Replace all ':' in selector name with '_' ouch!
More information about the cfe-commits
mailing list