mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 18:46:05 +00:00
[flang] Fix bug with "expected ..." messages in token strings.
Original-commit: flang-compiler/f18@9cc84ba6fb Reviewed-on: https://github.com/flang-compiler/f18/pull/14 Tree-same-pre-rewrite: false
This commit is contained in:
parent
3b544af6da
commit
2bfdbb87b7
@ -69,6 +69,10 @@ public:
|
||||
extra_ += s;
|
||||
return *this;
|
||||
}
|
||||
Message &operator+=(char ch) {
|
||||
extra_ += ch;
|
||||
return *this;
|
||||
}
|
||||
|
||||
Provenance Emit(
|
||||
std::ostream &, const AllSources &, bool echoSourceLine = true) const;
|
||||
|
@ -133,7 +133,7 @@ public:
|
||||
} else if (*ch == tolower(*p)) {
|
||||
ch.reset();
|
||||
} else {
|
||||
state->PutMessage(at, "expected '"_en_US) += str_ + '\'';
|
||||
(state->PutMessage(at, "expected '"_en_US) += str_) += '\'';
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user