[llvm-commits] [llvm-gcc-4.2] r73564 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Dale Johannesen
dalej at apple.com
Tue Jun 16 15:17:21 PDT 2009
Author: johannes
Date: Tue Jun 16 17:17:20 2009
New Revision: 73564
URL: http://llvm.org/viewvc/llvm-project?rev=73564&view=rev
Log:
Don't emit debug info for TEMPLATE_DECL members.
This is pointless, and can cause a crash.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=73564&r1=73563&r2=73564&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Tue Jun 16 17:17:20 2009
@@ -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);
More information about the llvm-commits
mailing list