From 6ba92d0fda0a1bd776142b0ab6348d811750f48c Mon Sep 17 00:00:00 2001 From: Ivica Bogosavljevic Date: Tue, 12 Sep 2017 11:01:11 +0200 Subject: [PATCH] MIPS64: Fix compile error due to -Werror=parentheses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: Change-Id: Ifb4d3c8d085ebaf0eaed2c4648871488d94a6997 Reviewed-on: https://chromium-review.googlesource.com/662782 Reviewed-by: Miran Karić Reviewed-by: Ivica Bogosavljevic Commit-Queue: Ivica Bogosavljevic Cr-Commit-Position: refs/heads/master@{#47967} --- src/mips64/assembler-mips64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc index 6fe19f0020..7efe58c959 100644 --- a/src/mips64/assembler-mips64.cc +++ b/src/mips64/assembler-mips64.cc @@ -1969,7 +1969,7 @@ void Assembler::sll(Register rd, // Don't allow nop instructions in the form sll zero_reg, zero_reg to be // generated using the sll instruction. They must be generated using // nop(int/NopMarkerTypes). - DCHECK(coming_from_nop || rd != zero_reg && rt != zero_reg); + DCHECK(coming_from_nop || (rd != zero_reg && rt != zero_reg)); GenInstrRegister(SPECIAL, zero_reg, rt, rd, sa & 0x1F, SLL); }