[all-commits] [llvm/llvm-project] 35249c: [Flang] Fix error messages on Windows.

Mats Petersson via All-commits all-commits at lists.llvm.org
Thu Aug 12 10:51:55 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35249cb7b1e82147ef08de12bdf34a29d8c58d53
      https://github.com/llvm/llvm-project/commit/35249cb7b1e82147ef08de12bdf34a29d8c58d53
  Author: Ivan Zhechev <ivan.zhechev at arm.com>
  Date:   2021-08-12 (Thu, 12 Aug 2021)

  Changed paths:
    M flang/lib/Parser/message.cpp

  Log Message:
  -----------
  [Flang] Fix error messages on Windows.

Flang uses positional arguments for `messages::say()`, such as "%1$s" which is only supported in MS Compilers with the `_*printf_p` form of the function. This uses a conditional macro to convert the existing `vsnprintf` used to the one needed in MS-World.

7 tests in D107575 rely on this change.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D107654




More information about the All-commits mailing list