[clang] [clang][rtsan] Add sanitize_realtime_unsafe attr to [[clang::blocking]] function IR (PR #111055)

Florian Mayer via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 13:23:10 PDT 2024


fmayer wrote:

>  With the function effects warnings (as errors) activated, blocking functions cannot be called from non-blocking functions, and this is enforced at compile time. The purpose of this series of PRs is to introduce similar functionality into RealtimeSanitizer, so that it can make the equivalent check at run time.

What is the reason we need to check something again at runtime that was already checked at compile-time? In case people didn't `-Werror` the warning?

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


More information about the cfe-commits mailing list