[llvm] r348900 - [GISel] Add parentheses to an assert because gcc is mean.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 11 14:07:07 PST 2018
Author: ctopper
Date: Tue Dec 11 14:07:06 2018
New Revision: 348900
URL: http://llvm.org/viewvc/llvm-project?rev=348900&view=rev
Log:
[GISel] Add parentheses to an assert because gcc is mean.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp?rev=348900&r1=348899&r2=348900&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp Tue Dec 11 14:07:06 2018
@@ -179,7 +179,7 @@ MachineInstrBuilder MachineIRBuilder::bu
void MachineIRBuilder::validateBinaryOp(const LLT &Res, const LLT &Op0,
const LLT &Op1) {
- assert(Res.isScalar() || Res.isVector() && "invalid operand type");
+ assert((Res.isScalar() || Res.isVector()) && "invalid operand type");
assert((Res == Op0 && Res == Op1) && "type mismatch");
}
More information about the llvm-commits
mailing list