[cfe-commits] r39824 - /cfe/trunk/CodeGen/CGStmt.cpp
Chris Lattner
sabre at nondot.org
Fri Jul 13 13:07:11 PDT 2007
Author: lattner
Date: Fri Jul 13 15:07:11 2007
New Revision: 39824
URL: http://llvm.org/viewvc/llvm-project?rev=39824&view=rev
Log:
silence a bogus gcc warning.
Modified:
cfe/trunk/CodeGen/CGStmt.cpp
Modified: cfe/trunk/CodeGen/CGStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGStmt.cpp?rev=39824&r1=39823&r2=39824&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGStmt.cpp (original)
+++ cfe/trunk/CodeGen/CGStmt.cpp Fri Jul 13 15:07:11 2007
@@ -247,6 +247,8 @@
const Expr *RV = S.getRetValue();
if (RV)
RetVal = EmitExpr(RV);
+ else // Silence a bogus GCC warning.
+ RetVal = RValue::get(0);
QualType FnRetTy = CurFuncDecl->getType().getCanonicalType();
FnRetTy = cast<FunctionType>(FnRetTy)->getResultType();
More information about the cfe-commits
mailing list