Hi all. Is it allowed to modify ConstantArray object within setOperand method, or it is better to leave old ConstantArray object and create new one?
Thanks!
-Stepan.
Hi all. Is it allowed to modify ConstantArray object within setOperand method, or it is better to leave old ConstantArray object and create new one?
Thanks!
-Stepan.
ConstantArray's are uniqued, so they should definitely *not* be mutated with setOperand. You should create a new one with ConstantArray::get with the updated elements.
-Chris