Hi Nick, > + if (ConstantExpr *CE = dyn_cast<ConstantExpr>(ArrayRef)) > + return ConstantFoldConstantExpression(CE, &getTargetData()); in theory this method can return NULL (at least that's what the comment on it says). Ciao, Duncan.