aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2022-07-21 06:39:22 -0700
committerErich Keane <erich.keane@intel.com>2022-07-21 06:40:14 -0700
commit1da311902555e320540cc3082b226d63cf2c200c (patch)
tree3f704c721fc7357c16c06664586b112176b00ff0 /clang/lib/Parse/Parser.cpp
parent888d0a5ef2590f9f3e4c6820dfacb800db029d97 (diff)
downloadllvm-1da311902555e320540cc3082b226d63cf2c200c.zip
llvm-1da311902555e320540cc3082b226d63cf2c200c.tar.gz
llvm-1da311902555e320540cc3082b226d63cf2c200c.tar.bz2
Revert "Rewording the "static_assert" to static assertion"
Looks like we again are going to have problems with libcxx tests that are overly specific in their dependency on clang's diagnostics. This reverts commit 6542cb55a3eb115b1c3592514590a19987ffc498.
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index fd04466..ab8748c 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -153,7 +153,7 @@ bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID,
return true;
}
-bool Parser::ExpectAndConsumeSemi(unsigned DiagID, StringRef TokenUsed) {
+bool Parser::ExpectAndConsumeSemi(unsigned DiagID) {
if (TryConsumeToken(tok::semi))
return false;
@@ -172,7 +172,7 @@ bool Parser::ExpectAndConsumeSemi(unsigned DiagID, StringRef TokenUsed) {
return false;
}
- return ExpectAndConsume(tok::semi, DiagID , TokenUsed);
+ return ExpectAndConsume(tok::semi, DiagID);
}
void Parser::ConsumeExtraSemi(ExtraSemiKind Kind, DeclSpec::TST TST) {