[llvm-commits] CVS: llvm-gcc/gcc/tree.c
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 27 19:30:12 PDT 2004
Changes in directory llvm-gcc/gcc:
tree.c updated: 1.3 -> 1.4
---
Log message:
Fix for: test/Regression/C++Frontend/2004-09-27-CompilerCrash.cpp
---
Diffs of the changes: (+3 -1)
Index: llvm-gcc/gcc/tree.c
diff -u llvm-gcc/gcc/tree.c:1.3 llvm-gcc/gcc/tree.c:1.4
--- llvm-gcc/gcc/tree.c:1.3 Thu Feb 5 10:05:45 2004
+++ llvm-gcc/gcc/tree.c Mon Sep 27 21:30:02 2004
@@ -1315,7 +1315,9 @@
case ARRAY_REF:
case ARRAY_RANGE_REF:
- if (TREE_CODE (TYPE_SIZE (TREE_TYPE (arg))) == INTEGER_CST
+
+ if (TYPE_SIZE (TREE_TYPE (arg))
+ && TREE_CODE (TYPE_SIZE (TREE_TYPE (arg))) == INTEGER_CST
&& TREE_CODE (TREE_OPERAND (arg, 1)) == INTEGER_CST)
return staticp (TREE_OPERAND (arg, 0));
More information about the llvm-commits
mailing list