Question about Constants

I have a const array of structs (struct is made up of two int). This code:

ArrayRef<Constant*> AR;
CA->get(AT, AR);

where CA = ConstantArray* and AT* = ArrayType gives AR.size() of 0

I just want to iterate through the ConstantArray and find the values of the integers inside the structs.


ConstantArray::get has no side-effects. You're probably looking for