aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-15 13:05:01 -0700
committerMichael Forney <mforney@mforney.org>2019-03-15 13:05:01 -0700
commit543d67d29296d7c1fab54292ade3a4d73ebac775 (patch)
treea30d074270024dfb14ac4bb93293d50e10eda60a /expr.c
parent0fdbe052dcf45546e1b78b731ba2529c2b655396 (diff)
__builtin_constant_p doesn't need to consider address constants
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index 8b3df82..d30669c 100644
--- a/expr.c
+++ b/expr.c
@@ -416,7 +416,6 @@ builtinfunc(struct scope *s, enum builtinkind kind)
e->builtin.arg = exprconvert(assignexpr(s), &typeulong);
break;
case BUILTINCONSTANTP:
- /* XXX: does this need to consider address constants? */
e = mkconstexpr(&typeint, eval(condexpr(s))->kind == EXPRCONST);
break;
case BUILTININFF: