[PATCH] D124937: [ThreadSanitizer] Add fallback DebugLocation for instrumentation calls
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 14:23:22 PDT 2022
nickdesaulniers accepted this revision.
nickdesaulniers added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp:198
+ return;
+ if (auto SP = F.getSubprogram())
+ IRB.SetCurrentDebugLocation(DILocation::get(SP->getContext(), 0, 0, SP));
----------------
plz don't use `auto` here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124937/new/
https://reviews.llvm.org/D124937
More information about the llvm-commits
mailing list