We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 303e396 commit 7eb871fCopy full SHA for 7eb871f
compiler/noirc_evaluator/src/ssa/opt/constant_folding.rs
@@ -726,6 +726,7 @@ impl<'brillig> Context<'brillig> {
726
// Should we consider calls to slice_push_back and similar to be mutating operations as well?
727
if let Store { value: array, .. } | ArraySet { array, .. } = instruction {
728
if function.dfg.is_global(*array) {
729
+ // Early return as we expect globals to be immutable.
730
return;
731
};
732
0 commit comments