This silences the following warnings:
../include/llvm/ExecutionEngine/JITLink/JITLink.h:1108:56: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
1105 | assert(S == Scope::Local || llvm::count_if(AbsoluteSymbols,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1106 | [&](const Symbol *Sym) {
| ~~~~~~~~~~~~~~~~~~~~~~~~
1107 | return Sym->getName() == Name;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1108 | }) == 0 &&
| ~~~~~~~~^~
1109 | "Duplicate absolute symbol");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Symbol &addAbsoluteSymbol(StringRef Name, orc::ExecutorAddr Address,
orc::ExecutorAddrDiff Size, Linkage L, Scope S,
bool IsLive) {
- assert(S == Scope::Local || llvm::count_if(AbsoluteSymbols,
+ assert((S == Scope::Local || llvm::count_if(AbsoluteSymbols,
[&](const Symbol *Sym) {
return Sym->getName() == Name;
- }) == 0 &&
+ }) == 0) &&
"Duplicate absolute symbol");
auto &Sym = Symbol::constructAbsolute(Allocator.Allocate<Symbol>(),
createAddressable(Address), Name,