[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

Thurston Dang via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 10:14:02 PST 2024


================
@@ -0,0 +1,106 @@
+// NOTE: Assertions have mostly been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// The most important assertion is the attributes at the end of the file, which
+// shows that ubsan attaches 'nomerge' to each ubsantrap intrinsic.
+//
+// RUN: %clang -fsanitize=signed-integer-overflow -S -emit-llvm -fsanitize-trap=all -O3 -mllvm -ubsan-unique-traps %s -o - \
----------------
thurstond wrote:

Done! I'd overlooked the clang driver distinction - thanks for your electrifying comment! 

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


More information about the cfe-commits mailing list