[PATCH] D27448: Add missing parens in assert.

Sam McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 02:25:00 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL288792: Add missing parens in assert. (authored by sammccall).

Changed prior to commit:
  https://reviews.llvm.org/D27448?vs=80389&id=80391#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27448

Files:
  llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp


Index: llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ llvm/trunk/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.80391.patch
Type: text/x-patch
Size: 609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161206/8745ae33/attachment.bin>


More information about the llvm-commits mailing list