[llvm-branch-commits] [llvm-gcc-branch] r73570 - /llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp

Bill Wendling isanbard at gmail.com
Tue Jun 16 15:29:40 PDT 2009


Author: void
Date: Tue Jun 16 17:29:40 2009
New Revision: 73570

URL: http://llvm.org/viewvc/llvm-project?rev=73570&view=rev
Log:
--- 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.

Modified:
    llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp

Modified: llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp?rev=73570&r1=73569&r2=73570&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Bender/gcc/llvm-debug.cpp Tue Jun 16 17:29:40 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-branch-commits mailing list