Stepan Dyatkovskiy
2012-Jan-17 19:16 UTC
[LLVMdev] [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? Thanks! -Stepan.
On Jan 17, 2012, at 11:16 AM, Stepan Dyatkovskiy wrote:> 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. -Chris
Possibly Parallel Threads
- [LLVMdev] How to force the creation of arrays with zeroes?
- [LLVMdev] Fwd: How to force the creation of arrays with zeroes?
- [LLVMdev] Fwd: How to force the creation of arrays with zeroes?
- [LLVMdev] How to force the creation of arrays with zeroes?
- [LLVMdev] Fwd: How to force the creation of arrays with zeroes?