[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)
M. Zeeshan Siddiqui via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 29 12:01:38 PDT 2025
================
@@ -1,16 +1,33 @@
-// RUN: %clang_cc1 -verify -Wunreachable-code %s
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -verify -Wunreachable-code %s
+// RUN: %clang_cc1 -triple aarch64-unknown-linux-gnu -target-feature +fullfp16 -verify -Wunreachable-code %s
+// REQUIRES: aarch64-registered-target
----------------
codemzs wrote:
The extra RUN line is needed because the bug only triggers on targets that
treat _Float16/__fp16 as a *native* scalar type (e.g. aarch64 with +fullfp16)
https://github.com/llvm/llvm-project/pull/149972
More information about the cfe-commits
mailing list