From 502865bddb19e71e3f842100b1f4d89fc5427dda Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 11 Dec 2018 22:07:06 +0000 Subject: [PATCH] [GISel] Add parentheses to an assert because gcc is mean. llvm-svn: 348900 --- llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp index d4524fc..c1109e6 100644 --- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp +++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp @@ -179,7 +179,7 @@ MachineInstrBuilder MachineIRBuilder::buildGlobalValue(unsigned Res, 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"); } -- 2.7.4