commit | 95cfb85ad1820117e0864712555f3aa4fdf4721a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Jul 22 04:13:33 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Jul 22 04:13:33 2007 +0000 |
tree | 19dcff33dc75923e82c379974f06c07d70df5f96 | |
parent | 9c683062752a26014197df1c8792a19efa9e93cf [diff] [blame] |
Catch goto's with a missing identifier, patch by Neil Booth. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40381 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Parse/ParseStmt.cpp b/Parse/ParseStmt.cpp index 27c1fa8..564b097 100644 --- a/Parse/ParseStmt.cpp +++ b/Parse/ParseStmt.cpp
@@ -680,7 +680,11 @@ return true; } Res = Actions.ParseIndirectGotoStmt(GotoLoc, StarLoc, R.Val); + } else { + Diag(Tok, diag::err_expected_ident); + return true; } + return Res; }