diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 20:07:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 20:07:11 +0000 |
commit | a5ba0cb77223546475c7a2ceae41d708b5003fcc (patch) | |
tree | 7a43ed3058da421ba70edd2d4dbe71e5a67940c2 /clang/CodeGen/CGStmt.cpp | |
parent | 80f9f077e3030e963c8f0d5b03468df7009cbb56 (diff) | |
download | bcm5719-llvm-a5ba0cb77223546475c7a2ceae41d708b5003fcc.tar.gz bcm5719-llvm-a5ba0cb77223546475c7a2ceae41d708b5003fcc.zip |
silence a bogus gcc warning.
llvm-svn: 39824
Diffstat (limited to 'clang/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/CodeGen/CGStmt.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/CodeGen/CGStmt.cpp b/clang/CodeGen/CGStmt.cpp index 193acb716a8..88df7d41168 100644 --- a/clang/CodeGen/CGStmt.cpp +++ b/clang/CodeGen/CGStmt.cpp @@ -247,6 +247,8 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) { 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(); |