[flang] Fix __VA_ARGS__, was broken due to typo.
authorpeter klausler <pklausler@nvidia.com>
Tue, 3 Apr 2018 22:50:25 +0000 (15:50 -0700)
committerpeter klausler <pklausler@nvidia.com>
Tue, 3 Apr 2018 22:50:25 +0000 (15:50 -0700)
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

index 913e0da..07b23e8 100644 (file)
@@ -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_) {