From 0bcc3d87223d7796946bfa6dd6174af900d8eba4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 15 Feb 2012 15:59:09 +0000 Subject: [PATCH] Fix silly precedence error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150585 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaStmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 4351e9ba10..a163779959 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -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; -- 2.50.1