Fix HasOutput for more than one output

Change-Id: I9cab4e35c356a1fdd9942bd54832e7a375cd0800
Reviewed-on: https://chromium-review.googlesource.com/1152162
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Deepti Gandluri <gdeepti@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54739}
This commit is contained in:
Deepti Gandluri 2018-07-26 14:07:26 -07:00 committed by Commit Bot
parent a8f0909905
commit 39e3cec671

View File

@ -811,7 +811,7 @@ class V8_EXPORT_PRIVATE Instruction final {
return &operands_[i];
}
bool HasOutput() const { return OutputCount() == 1; }
bool HasOutput() const { return OutputCount() > 0; }
const InstructionOperand* Output() const { return OutputAt(0); }
InstructionOperand* Output() { return OutputAt(0); }