[clang] [compiler-rt] [Sanitizer] add signed-integer-wrap sanitizer (PR #80089)

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 13 10:41:26 PST 2024


================
@@ -0,0 +1,77 @@
+// Check that -fsanitize=signed-integer-wrap instruments with -fwrapv
----------------
nickdesaulniers wrote:

> I must be doing something wrong because it suggests I remove all my Check: ...'s and replace them with Check: {{.*}}

Huh, indeed. I can repro. Not sure how to fix, but in digging around I found clang/test/codegen/integer-overflow.c.  Your newly added test file clang/test/CodeGen/integer-wrap.c is highly redundant of that. Why don't you remove clang/test/CodeGen/integer-wrap.c and simply add another RUN line to clang/test/codegen/integer-overflow.c?

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


More information about the cfe-commits mailing list