aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-02-28 13:39:27 +0000
committergingerBill <bill@gingerbill.org>2022-02-28 13:40:01 +0000
commit278e239973ab1e680bd36f90c069ec798930e54b (patch)
tree2e3c1da08fd432fdae46f6ee772f9acf043002ca /src/check_expr.cpp
parent01162e08b55406578a2972d74c472de8a14f12b8 (diff)
Commit rest of code for `-disallow-rtti`
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index e07dc3d60..f1bcb4cd9 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -9352,6 +9352,8 @@ ExprKind check_expr_base(CheckerContext *c, Operand *o, Ast *node, Type *type_hi
if (o->type != nullptr && is_type_untyped(o->type)) {
add_untyped(c, node, o->mode, o->type, o->value);
}
+ check_rtti_type_disallowed(node, o->type, "An expression is using a type, %s, which has been disallowed");
+
add_type_and_value(c->info, node, o->mode, o->type, o->value);
return kind;
}