| Index: src/x64/lithium-x64.h
|
| diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h
|
| index 50e32d8cd61ee999fd915aed6ddd4dc3ce0b3d07..ee3bc41824c9bb0cabea704ffc5b4c78ff19b760 100644
|
| --- a/src/x64/lithium-x64.h
|
| +++ b/src/x64/lithium-x64.h
|
| @@ -266,7 +266,7 @@ class LInstruction: public ZoneObject {
|
| bool IsMarkedAsCall() const { return is_call_; }
|
|
|
| virtual bool HasResult() const = 0;
|
| - virtual LOperand* result() = 0;
|
| + virtual LOperand* result() const = 0;
|
|
|
| LOperand* FirstInput() { return InputAt(0); }
|
| LOperand* Output() { return HasResult() ? result() : NULL; }
|
| @@ -302,9 +302,9 @@ class LTemplateInstruction: public LInstruction {
|
| public:
|
| // Allow 0 or 1 output operands.
|
| STATIC_ASSERT(R == 0 || R == 1);
|
| - virtual bool HasResult() const { return R != 0; }
|
| + virtual bool HasResult() const { return R != 0 && result() != NULL; }
|
| void set_result(LOperand* operand) { results_[0] = operand; }
|
| - LOperand* result() { return results_[0]; }
|
| + LOperand* result() const { return results_[0]; }
|
|
|
| protected:
|
| EmbeddedContainer<LOperand*, R> results_;
|
|
|