[PATCH] D27448: Add missing parens in assert.
Sam McCall via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 02:21:13 PST 2016
sammccall created this revision.
sammccall added a subscriber: llvm-commits.
Add missing parens in assert, which warn in GCC.
https://reviews.llvm.org/D27448
Files:
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Index: lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
===================================================================
--- lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -169,7 +169,7 @@
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())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27448.80389.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161206/56dfda5b/attachment.bin>
More information about the llvm-commits
mailing list