aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorPaul Kirth <paulkirth@google.com>2025-01-14 11:55:19 -0800
committerGitHub <noreply@github.com>2025-01-14 11:55:19 -0800
commit44d9beef7d28f4a4d73acb12ea030bb642eff1d2 (patch)
treeb9d4905a48bf3d29ddabf04cedce65b5ab09cb55 /llvm/lib/Bitcode
parent31e9d390c015bc628dce947d532d10f5d4436190 (diff)
downloadllvm-44d9beef7d28f4a4d73acb12ea030bb642eff1d2.zip
llvm-44d9beef7d28f4a4d73acb12ea030bb642eff1d2.tar.gz
llvm-44d9beef7d28f4a4d73acb12ea030bb642eff1d2.tar.bz2
[rtsan][test] Prevent test check from being optimized out in LTO builds (#122524)
In LTO builds, some test checks can be optimized away, since the compiler can see through the memory accesses after inlining across TUs. This causes the existing death tests to fail, since the functions are completely optimized out and things like copying a lambda will no longer occur and trigger the sanitizer. To prevent that, we can use an empty inline assembly block to tell the compiler that memory is modified, and prevent it from doing that.
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions