aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-05-01 01:09:56 +0800
committerTeddy <ted.sybil@gmail.com>2014-05-01 01:09:56 +0800
commitd081685caad61025b02426177f61fbe9b98a029b (patch)
tree64170f73981cbe0b60d88887f448548417a42b68
parent38dd138627bf6de02734d00e5df841c25a53855e (diff)
...ssa
-rw-r--r--semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/semantics.c b/semantics.c
index 9ef5f7f..285538e 100644
--- a/semantics.c
+++ b/semantics.c
@@ -939,7 +939,7 @@ ExpType exp_check_ref(ExpType op1, CNode *p) {
ERROR((p, "lvalue required as unary '&' operand"));
/* TODO: constant pointer folding */
p->ext.is_const = 0;
- /* should be constant */
+ /* should not be constant */
res.lval = 0;
res.type = ctype_create("", CPTR, p);
res.type->rec.ref = op1.type;