diff options
author | Tacet <4922191+AdvenamTacet@users.noreply.github.com> | 2023-12-05 19:27:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 13:27:08 -0500 |
commit | 02f4b36ad5f2f97ff63259e38244da8fcd5a205e (patch) | |
tree | 29aae511632502427dff32c582c08d2100a67b02 /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
parent | df2485b215af46ebd5fd3a94b929ebc951c1d12e (diff) | |
download | llvm-02f4b36ad5f2f97ff63259e38244da8fcd5a205e.zip llvm-02f4b36ad5f2f97ff63259e38244da8fcd5a205e.tar.gz llvm-02f4b36ad5f2f97ff63259e38244da8fcd5a205e.tar.bz2 |
[libc++] Refactor of ASan annotation functions (#74023)
This commit refactors the ASan annotation functions in libc++ to reduce
unnecessary code duplication. Additionally it adds a small optimization.
- Eliminates two redundant function versions by utilizing the
`[[maybe_unused]]` attribute and guarding function bodies with `#ifndef
_LIBCPP_HAS_NO_ASAN`.
- Introduces an additional guard to an auxiliary function, allowing the
removal of a no-ops function body. This approach avoids relying on the
optimizer for code elimination.
Fixes #73043
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions