summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-10-18 16:56:48 +0000
committerEric Christopher <echristo@gmail.com>2013-10-18 16:56:48 +0000
commit4d964a517f3a39a2082e821ce8042ba5a65811cc (patch)
tree807d1e2594726c91face5ac1fa9a66e364cd42a5 /llvm/lib/CodeGen
parent2436fe95ea9f8c92c74f9af55666eaf73caf372a (diff)
downloadbcm5719-llvm-4d964a517f3a39a2082e821ce8042ba5a65811cc.tar.gz
bcm5719-llvm-4d964a517f3a39a2082e821ce8042ba5a65811cc.zip
Revert the rest of r192749 to bring back the buildbot. These two
error messages should not be able to occur at the same time. llvm-svn: 192985
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 755f27867ec..738b879fcef 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -994,8 +994,10 @@ void DwarfDebug::collectDeadVariables() {
// Construct subprogram DIE and add variables DIEs.
CompileUnit *SPCU = CUMap.lookup(TheCU);
assert(SPCU && "Unable to find Compile Unit!");
- DIE *SPDIE = SPCU->getDIE(SP);
- assert(SPDIE && "Subprogram wasn't created?");
+ // FIXME: See the comment in constructSubprogramDIE about duplicate
+ // subprogram DIEs.
+ constructSubprogramDIE(SPCU, SP);
+ DIE *SPDIE = SPCU->getDIE(SP);
for (unsigned vi = 0, ve = Variables.getNumElements(); vi != ve; ++vi) {
DIVariable DV(Variables.getElement(vi));
if (!DV.isVariable())
OpenPOWER on IntegriCloud