[all-commits] [llvm/llvm-project] d789ea: [Diagnostics] Don't drop a statically set NoWarnin...

Wolfgang Pieb via All-commits all-commits at lists.llvm.org
Mon Jan 10 16:39:07 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d789ea713372d44e50ff52a85a198ac6bbedaef9
      https://github.com/llvm/llvm-project/commit/d789ea713372d44e50ff52a85a198ac6bbedaef9
  Author: Wolfgang Pieb <wolfgang_pieb at playstation.sony.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M clang/lib/Basic/Diagnostic.cpp
    M clang/test/Lexer/pragma-message.c

  Log Message:
  -----------
  [Diagnostics] Don't drop a statically set NoWarningAsError flag during option processing

When a -W<diag> option is given on the command line, and the corresponding diagnostic has
the NoWarnOnError flag set, prevent the flag from being dropped when the severity is reevaluated.
This fixes PR51837.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list