]> granicus.if.org Git - clang/commitdiff
Fix silly precedence error.
authorDouglas Gregor <dgregor@apple.com>
Wed, 15 Feb 2012 15:59:09 +0000 (15:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 15 Feb 2012 15:59:09 +0000 (15:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150585 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 4351e9ba10153a96696b6a270d487bccb3644b7d..a16377995917b168a108c0cbf0b5f7aa19199485 100644 (file)
@@ -1849,7 +1849,7 @@ Sema::ActOnCapScopeReturnStmt(SourceLocation ReturnLoc, Expr *RetValExp) {
         !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;