[llvm] r373779 - [JITLink] Silence GCC warnings. NFC.
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 12:47:42 PDT 2019
Author: mstorsjo
Date: Fri Oct 4 12:47:42 2019
New Revision: 373779
URL: http://llvm.org/viewvc/llvm-project?rev=373779&view=rev
Log:
[JITLink] Silence GCC warnings. NFC.
Use parentheses in an expression with mixed && and ||.
Differential Revision: https://reviews.llvm.org/D68447
Modified:
llvm/trunk/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
Modified: llvm/trunk/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h?rev=373779&r1=373778&r2=373779&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h (original)
+++ llvm/trunk/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h Fri Oct 4 12:47:42 2019
@@ -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:
More information about the llvm-commits
mailing list