diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-01 15:49:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-01 15:49:26 +0000 |
commit | f65086b479778d7090622bfb6cd9646c541a097e (patch) | |
tree | f04032e96298edb6d36b00c80c523c238cb1c4a8 /lib/Parse/ParseStmt.cpp | |
parent | 0a35bceb7768fc0be62cb644a4e31d8bfd9fb44a (diff) |
when emitting an error about a missing } in a compound statement, emit
a "to match this {" note, pointing out the opener.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseStmt.cpp')
-rw-r--r-- | lib/Parse/ParseStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index af927285a4..6c240e608c 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -519,6 +519,7 @@ StmtResult Parser::ParseCompoundStatementBody(bool isStmtExpr) { // We broke out of the while loop because we found a '}' or EOF. if (Tok.isNot(tok::r_brace)) { Diag(Tok, diag::err_expected_rbrace); + Diag(LBraceLoc, diag::note_matching) << "{"; return StmtError(); } |