commit b8ca40fa9987dea2aac924b8b0f683fefe1617d1
parent cb9be25874b98d1d1e3f531a4a78eefa9f22833d
Author: Eyal Sawady <ecs@d2evs.net>
Date: Tue, 22 Mar 2022 16:25:50 +0000
check_expr_const: don't use type hint
Signed-off-by: Eyal Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/src/check.c b/src/check.c
@@ -1410,15 +1410,6 @@ check_expr_constant(struct context *ctx,
|| storage == STORAGE_RCONST) {
expr->result = type_create_const(storage,
aexpr->constant.ival, aexpr->constant.ival);
- if (hint != NULL) {
- const struct type *new =
- promote_const(expr->result, hint);
- if (new == NULL) {
- expr->result = lower_const(expr->result, NULL);
- } else {
- expr->result = new;
- }
- }
}
switch (aexpr->constant.storage) {