mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288792 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff117bc9cb
commit
ec5ae20d53
@ -169,7 +169,7 @@ MachineInstrBuilder MachineIRBuilder::buildConstant(unsigned Res,
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user