On 06/18/2014 04:10 PM, Tom Stellard wrote:
> + if (CurDAG->isBaseWithConstantOffset(Addr)) {
> + ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
> +
> + if (C1 && isUInt<12>(C1->getZExtValue())) {
You either meant to use dyn_cast, or the C1 check is unneccessary