[llvm-commits] [dragonegg] r95507 - /dragonegg/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Sat Feb 6 13:09:23 PST 2010
Author: baldrick
Date: Sat Feb 6 15:09:23 2010
New Revision: 95507
URL: http://llvm.org/viewvc/llvm-project?rev=95507&view=rev
Log:
Partial workaround for GCC bug 42653.
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=95507&r1=95506&r2=95507&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sat Feb 6 15:09:23 2010
@@ -275,7 +275,8 @@
unsigned Virtuality = 0;
unsigned VIndex = 0;
DIType ContainingType;
- if (DECL_VINDEX (FnDecl)) {
+ if (DECL_VINDEX (FnDecl) &&
+ TYPE_P((DECL_CONTEXT (FnDecl)))) { // Workaround GCC PR42653
if (host_integerp (DECL_VINDEX (FnDecl), 0))
VIndex = tree_low_cst (DECL_VINDEX (FnDecl), 0);
Virtuality = dwarf::DW_VIRTUALITY_virtual;
More information about the llvm-commits
mailing list