Clang can generate DW_TAG_inlined_subroutine with low_pc 0. With split dwarf
this led to range offset being a negative number.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
bolt/lib/Rewrite/DWARFRewriter.cpp | ||
---|---|---|
842 | It's noop. If range is empty we will normalize to low_pc/high_pc. |
bolt/lib/Rewrite/DWARFRewriter.cpp | ||
---|---|---|
868 | Sorry, I don't follow. What was useful? I was talking about the check for OutputRanges.empty(). |
bolt/lib/Rewrite/DWARFRewriter.cpp | ||
---|---|---|
868 | oh, I thought you were referring to the low_pc check. |
Rename before commit: "Fix handling inlined subroutine with no output pc." -> "Fix handling of inlined subroutine with no output PC"
Why is this change needed?