From e414ece79a35f4dd449ecc510e414e8e29178bcf Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 29 Jul 2013 23:53:08 +0000 Subject: Fix a truly egregious thinko in anonymous namespace check, update testcase to make sure we generate debug info for walrus by adding a non-trivial constructor and verify that we don't emit an ODR signature for the type. llvm-svn: 187393 --- llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 87354426fb4..12caa8ea064 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1074,8 +1074,8 @@ static bool isContainedInAnonNamespace(DIE *Die) { DIE *Parent = Die->getParent(); while (Parent) { - if (Die->getTag() == dwarf::DW_TAG_namespace && - getDIEStringAttr(Die, dwarf::DW_AT_name) == "") + if (Parent->getTag() == dwarf::DW_TAG_namespace && + getDIEStringAttr(Parent, dwarf::DW_AT_name) == "") return true; Parent = Parent->getParent(); } -- cgit v1.2.3