summaryrefslogtreecommitdiff
path: root/flang/lib/parser/characters.cc
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2018-07-19 15:42:00 -0700
committerpeter klausler <pklausler@nvidia.com>2018-07-19 15:42:00 -0700
commitd7f5aa55e8b851431115755fe784b621fd43f9f2 (patch)
tree07cfe87d473fa376c3dff16fb76e80651decbbd4 /flang/lib/parser/characters.cc
parent888786b3465f4daff9c281f463d5ee0dd9ef0366 (diff)
downloadllvm-d7f5aa55e8b851431115755fe784b621fd43f9f2.tar.gz
[flang] prep for merge
Original-commit: flang-compiler/f18@fa72384520af15c0901a41ebcea457fa1aa733a8 Reviewed-on: https://github.com/flang-compiler/f18/pull/133 Tree-same-pre-rewrite: false
Diffstat (limited to 'flang/lib/parser/characters.cc')
-rw-r--r--flang/lib/parser/characters.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/flang/lib/parser/characters.cc b/flang/lib/parser/characters.cc
index 7885f2755fd3..6b6c2e97131c 100644
--- a/flang/lib/parser/characters.cc
+++ b/flang/lib/parser/characters.cc
@@ -83,11 +83,11 @@ std::optional<std::size_t> CountCharacters(
}
std::string QuoteCharacterLiteral(
- const std::string &str, bool doubleDoubleQuotes, bool backslashEscapes) {
+ const std::string &str, bool doubleDoubleQuotes, bool doubleBackslash) {
std::string result{'"'};
const auto emit{[&](char ch) { result += ch; }};
for (char ch : str) {
- EmitQuotedChar(ch, emit, emit, doubleDoubleQuotes, backslashEscapes);
+ EmitQuotedChar(ch, emit, emit, doubleDoubleQuotes, doubleBackslash);
}
result += '"';
return result;