aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-02-15 15:59:09 +0000
committerDouglas Gregor <dgregor@apple.com>2012-02-15 15:59:09 +0000
commit0bcc3d87223d7796946bfa6dd6174af900d8eba4 (patch)
tree322cc44ed4b8c2a2fd720ecf4effb0bffc517c36 /lib/Sema/SemaStmt.cpp
parent4e88df72e690498aeba2dc3d5089388b27be66fa (diff)
Fix silly precedence error.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp2
1 files changed, 1 insertions, 1 deletions
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;