aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-05 06:19:09 +0000
committerChris Lattner <sabre@nondot.org>2008-08-05 06:19:09 +0000
commit4fef81d718ca1b91ce2adef52db91a35f86e9bbd (patch)
tree378bccc75780ce1d178f43d3eca1c7f12c974485 /include
parenta80f8749f2968d19595ca2544114932bf0ca2c11 (diff)
Fix rdar://6124613 a crash on invalid code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54340 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Parse/Parser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h
index 4cd9100867..12efe648c7 100644
--- a/include/clang/Parse/Parser.h
+++ b/include/clang/Parse/Parser.h
@@ -244,12 +244,12 @@ private:
//===--------------------------------------------------------------------===//
// Diagnostic Emission and Error recovery.
- void Diag(SourceLocation Loc, unsigned DiagID,
+ bool Diag(SourceLocation Loc, unsigned DiagID,
const std::string &Msg = std::string());
- void Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R);
- void Diag(const Token &Tok, unsigned DiagID,
+ bool Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R);
+ bool Diag(const Token &Tok, unsigned DiagID,
const std::string &M = std::string()) {
- Diag(Tok.getLocation(), DiagID, M);
+ return Diag(Tok.getLocation(), DiagID, M);
}
/// SkipUntil - Read tokens until we get to the specified token, then consume