[PATCH] D113307: flang] Fix crash in semantic error recovery situation
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 8 11:19:41 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf411c1dd9509: [flang] Fix crash in semantic error recovery situation (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113307/new/
https://reviews.llvm.org/D113307
Files:
flang/lib/Semantics/expression.cpp
Index: flang/lib/Semantics/expression.cpp
===================================================================
--- flang/lib/Semantics/expression.cpp
+++ flang/lib/Semantics/expression.cpp
@@ -1916,7 +1916,7 @@
"Base of procedure component reference is not a derived-type object"_err_en_US);
}
}
- CHECK(!GetContextualMessages().empty());
+ CHECK(context_.AnyFatalError());
return std::nullopt;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113307.385574.patch
Type: text/x-patch
Size: 423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211108/655b75f5/attachment.bin>
More information about the llvm-commits
mailing list