diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2024-02-06 17:40:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 17:40:32 +0000 |
commit | 1833de3ee364a996d03bb23b19fe472e3e2ddf3b (patch) | |
tree | a3e34765845407ecac6376d79347ee29aac0f918 /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | 0fb9f68bae4743dbabbccf3bbc575ac569730840 (diff) | |
download | llvm-1833de3ee364a996d03bb23b19fe472e3e2ddf3b.zip llvm-1833de3ee364a996d03bb23b19fe472e3e2ddf3b.tar.gz llvm-1833de3ee364a996d03bb23b19fe472e3e2ddf3b.tar.bz2 |
[Extractor][DebugInfo] Don't pick DebugLocs from dbg intrinsics (#80863)
When picking the source location for a branch instruction in the
CodeExtractor, we can end up picking the source location of a debugging
intrinsic. This never makes sense because any variable assignment
information (or labels) might originate from completely different
lexical scopes that have been inlined, and also makes the line tables
change between -g and -gmlt. Fix this by skipping debug intrinsics when
looking for branch source locations.
Detected because of test differences with RemoveDIs, the non-intrinsinc
form of debug-info -- fixing in intrinsic form to avoid there being
spurious test differences when we turn it on.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions