diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2024-05-02 23:18:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 23:18:16 +0100 |
| commit | 4113e15153d5af39a12c6bcf16e6b35614dc13a2 (patch) | |
| tree | 04a727a3ec5f5ebbe12281f0f31bacd1068ddf91 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 39172bcfe4ca6f4db09da0f76a3e324dd3888a51 (diff) | |
[clang][PGO] Apply artificial DebugLoc to llvm.instrprof.increment instructions (#90717)
Prior to this change the debug-location for the
`llvm.instrprof.increment` intrinsic was set to whatever the current
DIBuilder's current debug location was set to. This meant that for
switch-statements, a counter's location was set to the previous case's
debug-location, causing confusing stepping behaviour in debuggers. This
patch makes sure we attach a dummy debug-location for the increment
instructions.
rdar://123050737
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
