[cfe-commits] r150585 - /cfe/trunk/lib/Sema/SemaStmt.cpp

Douglas Gregor dgregor at apple.com
Wed Feb 15 07:59:09 PST 2012


Author: dgregor
Date: Wed Feb 15 09:59:09 2012
New Revision: 150585

URL: http://llvm.org/viewvc/llvm-project?rev=150585&view=rev
Log:
Fix silly precedence error.

Modified:
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=150585&r1=150584&r2=150585&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Wed Feb 15 09:59:09 2012
@@ -1849,7 +1849,7 @@
         !Context.hasSameType(ReturnT, CurCap->ReturnType)) { 
       Diag(ReturnLoc, diag::err_typecheck_missing_return_type_incompatible) 
           << ReturnT << CurCap->ReturnType
-          << getCurLambda() != 0;
+          << (getCurLambda() != 0);
       return StmtError();
     }
     CurCap->ReturnType = ReturnT;





More information about the cfe-commits mailing list