Revision: 128028
Author:   clattner
Date:     2007-06-05 17:56:14 -0700 (Tue, 05 Jun 2007)

Log Message:
-----------
Fix a bug in debug info emission that causes an ICE on a really horrible C++
testcase (54KLOC) that Wolfgang Bangerth provided.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-debug.cpp

Modified: apple-local/branches/llvm/gcc/llvm-debug.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-debug.cpp        2007-06-06 00:23:16 UTC 
(rev 128027)
+++ apple-local/branches/llvm/gcc/llvm-debug.cpp        2007-06-06 00:56:14 UTC 
(rev 128028)
@@ -674,7 +674,8 @@
                                    NULL;
 
         if (TREE_CODE(Member) == FIELD_DECL) {
-          if (TREE_CODE(DECL_FIELD_OFFSET(Member)) != INTEGER_CST)
+          if (DECL_FIELD_OFFSET(Member) == 0 ||
+              TREE_CODE(DECL_FIELD_OFFSET(Member)) != INTEGER_CST)
             // FIXME: field with variable position, skip it for now.
             continue;
 


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to