From eec3705f58c659c3b3fa472804f1ed41b2f9df58 Mon Sep 17 00:00:00 2001 From: peter klausler Date: Tue, 3 Apr 2018 15:50:25 -0700 Subject: [PATCH] [flang] Fix __VA_ARGS__, was broken due to typo. Original-commit: flang-compiler/f18@ba90b1fc27fc18ba045a033ec27e458cd6b2e958 Reviewed-on: https://github.com/flang-compiler/f18/pull/42 Tree-same-pre-rewrite: false --- flang/lib/parser/preprocessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/parser/preprocessor.cc b/flang/lib/parser/preprocessor.cc index 913e0dac1f6c..07b23e8e5abe 100644 --- a/flang/lib/parser/preprocessor.cc +++ b/flang/lib/parser/preprocessor.cc @@ -153,7 +153,7 @@ TokenSequence Definition::Apply( } else if (pasting && token.IsBlank()) { // Delete whitespace immediately following ## in the body. } else if (bytes == 11 && isVariadic_ && - token.ToString() == "__VA_ARGs__") { + token.ToString() == "__VA_ARGS__") { Provenance commaProvenance{allSources.CompilerInsertionProvenance(',')}; for (std::size_t k{argumentCount_}; k < args.size(); ++k) { if (k > argumentCount_) {