[clang] [Clang][CodeGen][OpenCL] Add `-fno-delete-null-pointer-checks` to avoid UB. NFC. (PR #135602)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 14 13:08:11 PDT 2025
================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -emit-llvm -o - | FileCheck %s
+// RUN: %clang_cc1 %s -triple "spir-unknown-unknown" -fno-delete-null-pointer-checks -emit-llvm -o - | FileCheck %s
----------------
efriedma-quic wrote:
I don't see any optimization flags here... is this somehow running the optimizer by default?
If it is, this change is fine, I guess.
https://github.com/llvm/llvm-project/pull/135602
More information about the cfe-commits
mailing list