From b6ccca217c35a95b8c2a337a7801b37cb23dbae2 Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Sun, 5 Dec 2021 13:39:48 -0500 Subject: [PATCH] Fix `-Wunused-variable` warning. NFC. --- llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp index 38f0ed5..9916f6e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp @@ -1081,7 +1081,7 @@ void DwarfCompileUnit::constructAbstractSubprogramScopeDIE( LexicalScope *Scope) { auto *SP = cast(Scope->getScopeNode()); - if (auto *SPDie = getAbstractScopeDIEs().lookup(SP)) + if (getAbstractScopeDIEs().count(SP)) return; DIE *ContextDIE; -- 2.7.4