summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-08-16 19:58:32 +0000
committerMorgan Deters <mdeters@gmail.com>2012-08-16 19:58:32 +0000
commitd260caa58d462f7e1eb0d94f73789f844f5f5596 (patch)
tree2bb8b49bc69dc1be780f20e399551b03d09f3bc0 /src/util
parent3e07620deae66ac9efaad3566186462356436011 (diff)
ArrayStoreAll should (for now) only allow constant expressions, as it is itself a CONSTANT.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/array_store_all.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/array_store_all.h b/src/util/array_store_all.h
index 277422ecf..7cfe2eab4 100644
--- a/src/util/array_store_all.h
+++ b/src/util/array_store_all.h
@@ -49,6 +49,7 @@ public:
CheckArgument(type.isArray(), type, "array store-all constants can only be created for array types, not `%s'", type.toString().c_str());
CheckArgument(expr.getType().isSubtypeOf(type.getConstituentType()), expr, "expr type `%s' does not match constituent type of array type `%s'", expr.getType().toString().c_str(), type.toString().c_str());
+ CheckArgument(expr.isConst(), expr, "ArrayStoreAll requires a constant expression");
}
~ArrayStoreAll() throw() {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback