mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
[flang] Keep message.cc buildable by g++ 7.2.
Original-commit: flang-compiler/f18@edd311972f Reviewed-on: https://github.com/flang-compiler/f18/pull/84 Tree-same-pre-rewrite: false
This commit is contained in:
@@ -117,7 +117,8 @@ bool Message::SortBefore(const Message &that) const {
|
||||
|
||||
bool Message::IsFatal() const {
|
||||
return std::visit(visitors{[](const MessageExpectedText &) { return true; },
|
||||
[](const auto &x) { return x.isFatal(); }},
|
||||
[](const MessageFixedText &x) { return x.isFatal(); },
|
||||
[](const MessageFormattedText &x) { return x.isFatal(); }},
|
||||
text_);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user