diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-05 16:47:23 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-05 16:47:23 +0000 |
commit | b706b58e7892c61fb184d039e2656753d6715c97 (patch) | |
tree | 9842ab0a446e099470c0cb83b66c75dc6fd127b1 /llvm/lib/CodeGen | |
parent | c74ffa9cab4681845ad801828ffea262957486b8 (diff) | |
download | bcm5719-llvm-b706b58e7892c61fb184d039e2656753d6715c97.tar.gz bcm5719-llvm-b706b58e7892c61fb184d039e2656753d6715c97.zip |
Partially revert r214761 that asserted that all concrete debug info variables had DIEs, due to a failure on Darwin.
I'll work on a reduction and fix after this.
llvm-svn: 214880
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9c9f8bb7534..c94eeb943c9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -797,7 +797,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. |