================
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -verify -Wunreachable-code %s
+
+// Previously this test will crash
+static void test(__fp16& x) {
+  if (x != 0 || x != 1.0) { // expected-note{{}}
----------------
steakhal wrote:

```suggestion
  if (x != 0 || x != 1.0) { // expected-note{{}} no-crash
```

https://github.com/llvm/llvm-project/pull/142897
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to