diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-18 08:25:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-18 08:25:10 +0100 |
commit | 2a1869b9815c1f59af9eae91a3ef7e7d78e8f4f2 (patch) | |
tree | 8867485da80dcb062e6eb98ac92db553f4e7c76e /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | beec840822867079b829f35cbd4b360aa8971438 (diff) | |
download | llvm-2a1869b9815c1f59af9eae91a3ef7e7d78e8f4f2.zip llvm-2a1869b9815c1f59af9eae91a3ef7e7d78e8f4f2.tar.gz llvm-2a1869b9815c1f59af9eae91a3ef7e7d78e8f4f2.tar.bz2 |
[DebugInfo] Shave even more users of DbgVariableIntrinsic from LLVM (#149136)
At this stage I'm just opportunistically deleting any code using
debug-intrinsic types, largely adjacent to calls to findDbgUsers. I'll
get to deleting that in probably one or more two commits.
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 6929d14..ed3dca2 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1978,14 +1978,13 @@ static at::StorageToVarsMap collectEscapedLocals(const DataLayout &DL, continue; // Find all local variables associated with the backing storage. - auto CollectAssignsForStorage = [&](auto *DbgAssign) { + auto CollectAssignsForStorage = [&](DbgVariableRecord *DbgAssign) { // Skip variables from inlined functions - they are not local variables. if (DbgAssign->getDebugLoc().getInlinedAt()) return; LLVM_DEBUG(errs() << " > DEF : " << *DbgAssign << "\n"); EscapedLocals[Base].insert(at::VarRecord(DbgAssign)); }; - for_each(at::getAssignmentMarkers(Base), CollectAssignsForStorage); for_each(at::getDVRAssignmentMarkers(Base), CollectAssignsForStorage); } return EscapedLocals; |