[llvm] r288792 - Add missing parens in assert.
Sam McCall via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 02:14:36 PST 2016
Author: sammccall
Date: Tue Dec 6 04:14:36 2016
New Revision: 288792
URL: http://llvm.org/viewvc/llvm-project?rev=288792&view=rev
Log:
Add missing parens in assert.
Summary: Add missing parens in assert, which warn in GCC.
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D27448
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=288792&r1=288791&r2=288792&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp Tue Dec 6 04:14:36 2016
@@ -169,7 +169,7 @@ MachineInstrBuilder MachineIRBuilder::bu
const ConstantInt &Val) {
LLT Ty = MRI->getType(Res);
- assert(Ty.isScalar() || Ty.isPointer() && "invalid operand type");
+ assert((Ty.isScalar() || Ty.isPointer()) && "invalid operand type");
const ConstantInt *NewVal = &Val;
if (Ty.getSizeInBits() != Val.getBitWidth())
More information about the llvm-commits
mailing list