[PATCH] D105201: [hwasan] Detect use after scope within function.
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 03:02:42 PDT 2021
fmayer added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp:1476
+ if (LocalDT == nullptr) {
+ DeleteDT = std::make_unique<DominatorTree>(F);
+ LocalDT = DeleteDT.get();
----------------
vitalybuka wrote:
> why we need these empty Trees?
They aren't empty, they are constructed from the function.
We need the unique_ptrs because sometimes we borrow the LocalDT from the passmanager, and sometimes we construct it ourselves, in which case we need to destruct it again.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105201/new/
https://reviews.llvm.org/D105201
More information about the llvm-commits
mailing list