Index: src/wasm/asm-wasm-builder.cc |
diff --git a/src/wasm/asm-wasm-builder.cc b/src/wasm/asm-wasm-builder.cc |
index 7c98d4d1189d62aea0dd8accaf209794504a70ce..70c5c1ef8b4eaad87f38c820dadb363d77278162 100644 |
--- a/src/wasm/asm-wasm-builder.cc |
+++ b/src/wasm/asm-wasm-builder.cc |
@@ -654,6 +654,14 @@ class AsmWasmBuilderImpl : public AstVisitor { |
} |
} |
+// Work around Mul + Div being defined in PPC assembler. |
+#ifdef Mul |
+#undef Mul |
+#endif |
+#ifdef Div |
+#undef Div |
+#endif |
+ |
#define NON_SIGNED_BINOP(op) \ |
static WasmOpcode opcodes[] = { \ |
kExprI32##op, \ |