DwarfCompileUnit: Push DIDescriptors through a getDIE/insertDIE
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfDebug.cpp
index 00a43a7fa856f1f8b7fae5c05130454b23f2f623..74c02694b91ac4f4c1453bf39ebaae95b1786cfc 100644 (file)
@@ -368,7 +368,7 @@ bool DwarfDebug::isSubprogramContext(const MDNode *Context) {
 // scope then create and insert DIEs for these variables.
 DIE *DwarfDebug::updateSubprogramScopeDIE(CompileUnit *SPCU,
                                           const MDNode *SPNode) {
-  DIE *SPDie = SPCU->getDIE(SPNode);
+  DIE *SPDie = SPCU->getDIE(DIDescriptor(SPNode));
 
   assert(SPDie && "Unable to find subprogram DIE!");
   DISubprogram SP(SPNode);