[clang] 4d6e67f - Fix build issue committed in 26fee0ff12
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 8 09:08:43 PDT 2024
Author: erichkeane
Date: 2024-04-08T09:08:21-07:00
New Revision: 4d6e67f677bdf40360e6aaba171bcdec93990b01
URL: https://github.com/llvm/llvm-project/commit/4d6e67f677bdf40360e6aaba171bcdec93990b01
DIFF: https://github.com/llvm/llvm-project/commit/4d6e67f677bdf40360e6aaba171bcdec93990b01.diff
LOG: Fix build issue committed in 26fee0ff12
I brain-farted on how assert works :)
Added:
Modified:
clang/lib/Parse/ParseOpenACC.cpp
Removed:
################################################################################
diff --git a/clang/lib/Parse/ParseOpenACC.cpp b/clang/lib/Parse/ParseOpenACC.cpp
index 3034d24b2ab9e2..f434e1542c801f 100644
--- a/clang/lib/Parse/ParseOpenACC.cpp
+++ b/clang/lib/Parse/ParseOpenACC.cpp
@@ -1245,7 +1245,7 @@ Parser::OpenACCDirectiveParseInfo Parser::ParseOpenACCDirective() {
assert(Tok.is(tok::annot_pragma_openacc_end) &&
"Didn't parse all OpenACC Clauses");
ParseInfo.EndLoc = ConsumeAnnotationToken();
- assert(ParseInfo.EndLoc.isValid(),
+ assert(ParseInfo.EndLoc.isValid() &&
"Terminating annotation token not present");
return ParseInfo;
More information about the cfe-commits
mailing list