[clang] [compiler-rt] [Clang] Make `-Wreturn-type` default to an error in all language modes (PR #123470)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 10:50:56 PST 2025


================
@@ -1,4 +1,4 @@
-// RUN: %clang_hwasan %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
+// RUN: %clang_hwasan -Wno-error=return-type %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
----------------
Sirraide wrote:

I’m not really that familiar with the sanitizers, and I know there are some sanitizer tests that explicitly test what happens if we *do* fall off the end of a function, so I wasn’t sure whether that was relevant here or not; if just returning `nullptr` is an option here then I’ll switch to that instead.

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


More information about the llvm-commits mailing list