[clang] [clang][CodeGen] Added SanitizerHandler mapping, trap messages in debug info, and corresponding test cases. (PR #143758)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 23 08:26:20 PDT 2025
================
@@ -0,0 +1,10 @@
+// RUN: %clang -O0 -g -debug-info-kind=standalone -dwarf-version=5 -fsanitize=undefined \
----------------
delcypher wrote:
@anthonyhatran We should probably use `%clang_cc1` instead as a lot of codegen tests do that. That by-passes the clang driver (which is responsible for presenting a GCC compatible interface).
We should also hardcode a target triple here so that we get deterministic code generation. Otherwise your test will use the host to determine the target which might cause the tests to fail when running on other host platforms.
E.g.: `%clang_cc1 -triple arm64-apple-macos`
https://github.com/llvm/llvm-project/pull/143758
More information about the cfe-commits
mailing list