[flang-commits] [clang] [clang-tools-extra] [flang] Reapply "[clang] Extend diagnose_if to accept more detailed warning information (#70976)" (PR #108453)

Mikael Holmén via flang-commits flang-commits at lists.llvm.org
Mon Sep 16 00:07:18 PDT 2024


mikaelholmen wrote:

Hello,

I noticed that before this patch
```clang empty.c -fsanitize=undefined -ffine-grained-bitfield-accesses -c -Werror```
(on empty file empty.c) resulted in
```warning: option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored```
but with the patch it results in
```error: option '-ffine-grained-bitfield-accesses' cannot be enabled together with a sanitizer; flag ignored [-Werror]```

Is this on purpose?

https://github.com/llvm/llvm-project/pull/108453


More information about the flang-commits mailing list