summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LexicalScopes.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-05-22 16:21:02 +0000
committerAdrian Prantl <aprantl@apple.com>2017-05-22 16:21:02 +0000
commit4c047f8931ba328149e8db176b756a8e409cdb04 (patch)
tree08e2f86583c0ddf742244b3abd71f623ef9b1bef /llvm/lib/CodeGen/LexicalScopes.cpp
parent9812d231ed502bfad2bafe2a3c49eb2fe8da14ca (diff)
downloadbcm5719-llvm-4c047f8931ba328149e8db176b756a8e409cdb04.tar.gz
bcm5719-llvm-4c047f8931ba328149e8db176b756a8e409cdb04.zip
Don't generate line&scope debug info for meta-instructions.
MachineInstructions that don't generate any code (such as IMPLICIT_DEFs) should not generate any debug info either. Fixes PR33107. https://bugs.llvm.org/show_bug.cgi?id=33107 llvm-svn: 303566
Diffstat (limited to 'llvm/lib/CodeGen/LexicalScopes.cpp')
-rw-r--r--llvm/lib/CodeGen/LexicalScopes.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LexicalScopes.cpp b/llvm/lib/CodeGen/LexicalScopes.cpp
index 275d84e2c18..40ee7ea785f 100644
--- a/llvm/lib/CodeGen/LexicalScopes.cpp
+++ b/llvm/lib/CodeGen/LexicalScopes.cpp
@@ -86,8 +86,9 @@ void LexicalScopes::extractLexicalScopes(
continue;
}
- // Ignore DBG_VALUE. It does not contribute to any instruction in output.
- if (MInsn.isDebugValue())
+ // Ignore DBG_VALUE and similar instruction that do not contribute to any
+ // instruction in the output.
+ if (MInsn.isMetaInstruction())
continue;
if (RangeBeginMI) {
OpenPOWER on IntegriCloud