[llvm-commits] CVS: llvm-gcc/gcc/c-typeck.c

Chris Lattner lattner at cs.uiuc.edu
Mon Feb 14 13:24:55 PST 2005



Changes in directory llvm-gcc/gcc:

c-typeck.c updated: 1.6 -> 1.7
---
Log message:

this returns a tree.


---
Diffs of the changes:  (+1 -1)

 c-typeck.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm-gcc/gcc/c-typeck.c
diff -u llvm-gcc/gcc/c-typeck.c:1.6 llvm-gcc/gcc/c-typeck.c:1.7
--- llvm-gcc/gcc/c-typeck.c:1.6	Sun Feb 13 21:21:56 2005
+++ llvm-gcc/gcc/c-typeck.c	Mon Feb 14 15:24:42 2005
@@ -1096,7 +1096,7 @@
 	  adr = build1 (ADDR_EXPR, ptrtype, exp);
 	  if (!c_mark_addressable (exp))
 	    return error_mark_node;
-	  TREE_CONSTANT (adr) = staticp (exp);
+	  TREE_CONSTANT (adr) = staticp (exp) != NULL;
 	  TREE_SIDE_EFFECTS (adr) = 0;   /* Default would be, same as EXP.  */
 	  return adr;
 	}






More information about the llvm-commits mailing list