aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-04-30 23:08:58 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-04-30 23:08:58 +0000
commit70b51c7e112757fa958f696c6b90e6c3e48922a3 (patch)
tree5771dfc6e1183e393a870e9e08e713c2ce1d6dc2 /lib/CodeGen
parent4649cac75c3cb80d543c6d90269388277228508d (diff)
Remove a warning when this file is compiled optimized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 1dfa9cd411..d7ced5ab5a 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -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!