summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-07-18 23:57:20 +0000
committerEric Christopher <echristo@gmail.com>2014-07-18 23:57:20 +0000
commitcfd17dd2be3dbb7f7fba9585d5c814c6f75add07 (patch)
tree1b9bb5afdae3b5a1100c0b218ee294fe405f58f5 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent215f3b7f02e657d56333aa28c89556c523b051a0 (diff)
downloadbcm5719-llvm-cfd17dd2be3dbb7f7fba9585d5c814c6f75add07.tar.gz
bcm5719-llvm-cfd17dd2be3dbb7f7fba9585d5c814c6f75add07.zip
Revert "Reapply "DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself.""""
After a successful build it seems to have come back on a later build. This reverts commit r213391. llvm-svn: 213432
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 8064209ba37..99e7a272d7f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -789,7 +789,8 @@ void DwarfDebug::finishVariableDefinitions() {
for (const auto &Var : ConcreteVariables) {
DIE *VariableDie = Var->getDIE();
// FIXME: There shouldn't be any variables without DIEs.
- assert(VariableDie);
+ if (!VariableDie)
+ continue;
// FIXME: Consider the time-space tradeoff of just storing the unit pointer
// in the ConcreteVariables list, rather than looking it up again here.
// DIE::getUnit isn't simple - it walks parent pointers, etc.
OpenPOWER on IntegriCloud