Duncan Sands wrote: > 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). Indeed, it can. Thanks for pointing that out. Nick