[compiler-rt] [nfc][lsan] Parametrize ScanForPointers with loader (PR #112803)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 17:48:49 PDT 2024
================
@@ -288,23 +288,32 @@ static inline bool MaybeUserPointer(uptr p) {
# endif
}
+namespace {
+struct DirectLoader {
+ void Init(uptr begin, uptr end) {};
+ void *operator()(uptr p) const { return *reinterpret_cast<void **>(p); }
----------------
fmayer wrote:
Would this be easier to read if it had a name like `LoadPtrAtAddress`? or just `LoadPtr(uptr address)`?
https://github.com/llvm/llvm-project/pull/112803
More information about the llvm-commits
mailing list