From 86aa03d5f991959299821ba45d476e2c51427139 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187393 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/AsmPrinter') diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8735442..12caa8e 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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.1