Revision: 22716
Author:   [email protected]
Date:     Wed Jul 30 14:45:41 2014 UTC
Log:      Fix build failures with LLVM-GCC 4.2 on Mac.

[email protected]

Review URL: https://codereview.chromium.org/431613004
http://code.google.com/p/v8/source/detail?r=22716

Modified:
 /branches/bleeding_edge/src/compiler/common-operator.h

=======================================
--- /branches/bleeding_edge/src/compiler/common-operator.h Wed Jul 30 13:54:45 2014 UTC +++ /branches/bleeding_edge/src/compiler/common-operator.h Wed Jul 30 14:45:41 2014 UTC
@@ -24,7 +24,8 @@
  public:
   ControlOperator(IrOpcode::Value opcode, uint16_t properties, int inputs,
                   int outputs, int controls, const char* mnemonic)
- : Operator1(opcode, properties, inputs, outputs, mnemonic, controls) {} + : Operator1(static_cast<uint8_t>(opcode), properties, inputs, outputs,
+                  mnemonic, controls) {}

virtual OStream& PrintParameter(OStream& os) const { return os; } // NOLINT
   int ControlInputCount() const { return parameter(); }
@@ -33,9 +34,9 @@
 class CallOperator : public Operator1<CallDescriptor*> {
  public:
   CallOperator(CallDescriptor* descriptor, const char* mnemonic)
-      : Operator1(IrOpcode::kCall, descriptor->properties(),
- descriptor->InputCount(), descriptor->ReturnCount(), mnemonic,
-                  descriptor) {}
+      : Operator1(static_cast<uint8_t>(IrOpcode::kCall),
+                  descriptor->properties(), descriptor->InputCount(),
+                  descriptor->ReturnCount(), mnemonic, descriptor) {}

   virtual OStream& PrintParameter(OStream& os) const {  // NOLINT
     return os << "[" << *parameter() << "]";

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to