Commit 39e3cec6 authored by Deepti Gandluri's avatar Deepti Gandluri Committed by Commit Bot

Fix HasOutput for more than one output

Change-Id: I9cab4e35c356a1fdd9942bd54832e7a375cd0800
Reviewed-on: https://chromium-review.googlesource.com/1152162Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54739}
parent a8f09099
...@@ -811,7 +811,7 @@ class V8_EXPORT_PRIVATE Instruction final { ...@@ -811,7 +811,7 @@ class V8_EXPORT_PRIVATE Instruction final {
return &operands_[i]; return &operands_[i];
} }
bool HasOutput() const { return OutputCount() == 1; } bool HasOutput() const { return OutputCount() > 0; }
const InstructionOperand* Output() const { return OutputAt(0); } const InstructionOperand* Output() const { return OutputAt(0); }
InstructionOperand* Output() { return OutputAt(0); } InstructionOperand* Output() { return OutputAt(0); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment