[llvm] [CodeView] Match MSVC implicit this records for Visual Studio (PR #214289)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 13:00:29 PDT 2026
================
@@ -3213,8 +3214,9 @@ void CodeViewDebug::endFunctionImpl(const MachineFunction *MF) {
: (ImplicitThis->DefRanges.empty()
? nullptr
: ImplicitThis->DefRanges.begin()->second.front().first);
- if (!CurFn->EpilogueRanges.empty())
- CurFn->DebugEnd = CurFn->EpilogueRanges.back().first;
+ CurFn->DebugEnd = CurFn->EpilogueRanges.empty()
----------------
efriedma-quic wrote:
This is still not quite right.
Even if a function has an epilogue, that epilogue might not be at the end of the function. For example, you could have code that looks like this:
```
cbz x0, bb_throw
ldp x29, x30, [sp], #16
ret
bb_throw
bl thow_exception
```
This is also assuming we're not doing hot-cold splitting, although I don't think we support that on Windows at the moment...
https://github.com/llvm/llvm-project/pull/214289
More information about the llvm-commits
mailing list