aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-29 23:53:08 +0000
committerEric Christopher <echristo@gmail.com>2013-07-29 23:53:08 +0000
commit86aa03d5f991959299821ba45d476e2c51427139 (patch)
tree3e7d13632b26d10101b5ae89eafb3edf0f86bb52 /lib/CodeGen/AsmPrinter
parent944aa2b784c727f5d4dca1a1a5347af8519ae6f2 (diff)
downloadexternal_llvm-86aa03d5f991959299821ba45d476e2c51427139.zip
external_llvm-86aa03d5f991959299821ba45d476e2c51427139.tar.gz
external_llvm-86aa03d5f991959299821ba45d476e2c51427139.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}