[PATCH] D139669: [CodeExtractor] Only rewrite scope of non-inlined variables
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 13:41:30 PST 2022
aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Transforms/Utils/CodeExtractor.cpp:1593
+ // inlined, point the intrinsic to a fresh variable within the new function.
+ if (DVI->getDebugLoc().getInlinedAt() == nullptr) {
+ DILocalVariable *OldVar = DVI->getVariable();
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139669/new/
https://reviews.llvm.org/D139669
More information about the llvm-commits
mailing list