protected IRExpression compile_impl() {
    IRExpression lhs =
        IRArgConverter.castOrConvertIfNecessary(
            IRTypeConstants.pBOOLEAN(), ExpressionTransformer.compile(_expr().getLHS(), _cc()));
    IRExpression rhs =
        IRArgConverter.castOrConvertIfNecessary(
            IRTypeConstants.pBOOLEAN(), ExpressionTransformer.compile(_expr().getRHS(), _cc()));

    return new IRConditionalOrExpression(lhs, rhs);
  }
Exemplo n.º 2
0
 @Override
 public IRType getType() {
   return IRTypeConstants.pBOOLEAN();
 }