summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 343b3432076..9506cef31d2 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -3413,13 +3413,6 @@ void CGDebugInfo::finalize() {
else
VH = it->second;
- // Functions have a fake temporary MDNode operand that is supposed
- // to get RAUWed upon DIBuilder finalization. Do not leak these
- // nodes for the temporary functions we are about to delete.
- if (FwdDecl.isSubprogram())
- if (llvm::MDNode *Vars = llvm::DISubprogram(FwdDecl).getVariablesNodes())
- llvm::MDNode::deleteTemporary(Vars);
-
FwdDecl.replaceAllUsesWith(CGM.getLLVMContext(),
llvm::DIDescriptor(cast<llvm::MDNode>(VH)));
}
OpenPOWER on IntegriCloud