Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Unified Diff: src/compiler/common-operator.h

Issue 431613004: Fix build failures with LLVM-GCC 4.2 on Mac. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index f7f365d4439ba1d27e352437ccff86d20c56d9cd..d5252877b0440b1cb985a40510fd75ee986afcac 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -24,7 +24,8 @@ class ControlOperator : public Operator1<int> {
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 ControlOperator : public Operator1<int> {
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() << "]";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698