[clang] [Sema] Fix -Wunreachable-code false negative when operands differ only by implicit casts (PR #149972)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 23 06:07:57 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
----------------
AaronBallman wrote:

Why does this require a specific target?

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


More information about the cfe-commits mailing list