File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1369,6 +1369,11 @@ class ArrayType extends DerivedType {
13691369 override predicate isDeeplyConst ( ) { this .getBaseType ( ) .isDeeplyConst ( ) } // No such thing as a const array type
13701370
13711371 override predicate isDeeplyConstBelow ( ) { this .getBaseType ( ) .isDeeplyConst ( ) }
1372+
1373+ /**
1374+ * Holds if this array is a variable-length array (VLA).
1375+ */
1376+ predicate isVla ( ) { type_is_vla ( underlyingElement ( this ) ) }
13721377}
13731378
13741379/**
Original file line number Diff line number Diff line change @@ -2178,6 +2178,8 @@ variable_vla(
21782178 int decl: @stmt_vla_decl ref
21792179);
21802180
2181+ type_is_vla(unique int type_id: @derivedtype ref)
2182+
21812183if_initialization(
21822184 unique int if_stmt: @stmt_if ref,
21832185 int init_id: @stmt ref
You can’t perform that action at this time.
0 commit comments