[PATCH] D105201: [hwasan] Detect use after scope within function.
Florian Mayer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 19 09:52:22 PDT 2021
fmayer added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp:1294
// Replace uses of the alloca with tagged address.
- Value *Tag = getAllocaTag(IRB, StackTag, AI, N);
+ Value *Tag = getAllocaTag(IRB, StackTag, AI, ++N);
Value *AILong = IRB.CreatePointerCast(AI, IntptrTy);
----------------
vitalybuka wrote:
> Probably not important but now it's starts with N==1
Actually this was broken when I changed to the range-based for, sorry about that. Fixed now.
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