[llvm] r352193 - Fix gcc -Wparentheses warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 25 03:38:40 PST 2019
Author: rksimon
Date: Fri Jan 25 03:38:40 2019
New Revision: 352193
URL: http://llvm.org/viewvc/llvm-project?rev=352193&view=rev
Log:
Fix gcc -Wparentheses warning. NFCI.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=352193&r1=352192&r2=352193&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Fri Jan 25 03:38:40 2019
@@ -490,10 +490,10 @@ static bool selectCopy(MachineInstr &I,
auto CheckCopy = [&]() {
// If we have a bitcast or something, we can't have physical registers.
assert(
- I.isCopy() ||
- (!TargetRegisterInfo::isPhysicalRegister(I.getOperand(0).getReg()) &&
- !TargetRegisterInfo::isPhysicalRegister(I.getOperand(1).getReg())) &&
- "No phys reg on generic operator!");
+ (I.isCopy() ||
+ (!TargetRegisterInfo::isPhysicalRegister(I.getOperand(0).getReg()) &&
+ !TargetRegisterInfo::isPhysicalRegister(I.getOperand(1).getReg()))) &&
+ "No phys reg on generic operator!");
assert(KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI));
return true;
};
More information about the llvm-commits
mailing list