]> granicus.if.org Git - llvm/commitdiff
[JITLink] Silence GCC warnings. NFC.
authorMartin Storsjo <martin@martin.st>
Fri, 4 Oct 2019 19:47:42 +0000 (19:47 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 4 Oct 2019 19:47:42 +0000 (19:47 +0000)
Use parentheses in an expression with mixed && and ||.

Differential Revision: https://reviews.llvm.org/D68447

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373779 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h

index cba26e9494b53ad0d4ec843d04f1d7b447c37d98..e1123cd1104876f573ea3b16f0906ff7c2f09741 100644 (file)
@@ -107,7 +107,7 @@ protected:
                      uint8_t Sect, uint16_t Desc, Linkage L, Scope S)
         : Name(Name), Value(Value), Type(Type), Sect(Sect), Desc(Desc), L(L),
           S(S) {
-      assert(!Name || !Name->empty() && "Name must be none or non-empty");
+      assert((!Name || !Name->empty()) && "Name must be none or non-empty");
     }
 
   public: