[PATCH] D135967: [StructurizeCFG][DebugInfo] Maintain DILocations in the branches created by StructurizeCFG
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 25 14:03:35 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/StructurizeCFG.cpp:555
+ for (BasicBlock &BB : *Func) {
+ if (DebugLoc DL = BB.getTerminator()->getDebugLoc())
+ TermDL[&BB] = DL;
----------------
I think the current guidance is DebugLocs should be handled by const reference
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135967/new/
https://reviews.llvm.org/D135967
More information about the llvm-commits
mailing list