--- Merging r73564 into '.':
U gcc/llvm-debug.cpp
Don't emit debug info for TEMPLATE_DECL members.
This is pointless, and can cause a crash.
llvm-svn: 73570
diff --git a/llvm-gcc-4.2/gcc/llvm-debug.cpp b/llvm-gcc-4.2/gcc/llvm-debug.cpp
index 81f3ab3..ae85753 100644
--- a/llvm-gcc-4.2/gcc/llvm-debug.cpp
+++ b/llvm-gcc-4.2/gcc/llvm-debug.cpp
@@ -664,6 +664,8 @@
if (DECL_ABSTRACT_ORIGIN (Member)) continue;
if (DECL_ARTIFICIAL (Member)) continue;
+ // In C++, TEMPLATE_DECLs are marked Ignored, and should be.
+ if (DECL_P (Member) && DECL_IGNORED_P (Member)) continue;
// Get the location of the member.
expanded_location MemLoc = GetNodeLocation(Member, false);