diff options
author | Eric Christopher <echristo@gmail.com> | 2013-07-29 23:53:08 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-07-29 23:53:08 +0000 |
commit | e414ece79a35f4dd449ecc510e414e8e29178bcf (patch) | |
tree | 0eb28de171a8d3c2b015a2c05cc22e26d65f1af4 /llvm/lib/CodeGen | |
parent | d853ea3142fd0c829e36738e097bb3d302b2a244 (diff) | |
download | bcm5719-llvm-e414ece79a35f4dd449ecc510e414e8e29178bcf.tar.gz bcm5719-llvm-e414ece79a35f4dd449ecc510e414e8e29178bcf.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |