Bug 1439004 - Fix build breakage when ENABLE_WASM_SATURATING_TRUNC_OPS is not defined. r=luke

This commit is contained in:
Dan Gohman 2018-02-20 12:05:00 -05:00
Родитель 9f0ef942b4
Коммит 09cd0171b2
2 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -1142,7 +1142,6 @@ class AstConversionOperator final : public AstExpr
AstExpr* operand() const { return operand_; }
};
#ifdef ENABLE_WASM_SATURATING_TRUNC_OPS
// Like AstConversionOperator, but for opcodes encoded with the Numeric prefix.
class AstExtraConversionOperator final : public AstExpr
{
@ -1159,7 +1158,6 @@ class AstExtraConversionOperator final : public AstExpr
NumericOp op() const { return op_; }
AstExpr* operand() const { return operand_; }
};
#endif
// This is an artificial AST node which can fill operand slots in an AST
// constructed from parsing or decoding stack-machine code that doesn't have

Просмотреть файл

@ -1354,12 +1354,10 @@ RenderExpr(WasmRenderContext& c, AstExpr& expr, bool newLine /* = true */)
if (!RenderConversionOperator(c, expr.as<AstConversionOperator>()))
return false;
break;
#ifdef ENABLE_WASM_SATURATING_TRUNC_OPS
case AstExprKind::ExtraConversionOperator:
if (!RenderExtraConversionOperator(c, expr.as<AstExtraConversionOperator>()))
return false;
break;
#endif
case AstExprKind::Load:
if (!RenderLoad(c, expr.as<AstLoad>()))
return false;