[LLVM] Modify ConstantArray object contents

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?



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.