[cfe-commits] r59408 - /cfe/trunk/lib/AST/ExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Sun Nov 16 14:09:16 PST 2008


On Sat, Nov 15, 2008 at 11:17 PM, Anders Carlsson <andersca at mac.com> wrote:
> +    case BinaryOperator::NE:
> +      Result = CR == APFloat::cmpGreaterThan || CR == APFloat::cmpLessThan;
> +      break;
> +    }
> +
> +    Result.zextOrTrunc(getIntTypeSizeInBits(E->getType()));
> +    Result.setIsUnsigned(E->getType()->isUnsignedIntegerType());
> +    return true;
> +  }

It's a bit more intuitive to set the width before the value, although
it doesn't matter in this particular case.

-Eli



More information about the cfe-commits mailing list