[all-commits] [llvm/llvm-project] 5563c3: [JITLink] Silence GCC warnings about parentheses a...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Wed Aug 10 23:58:25 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5563c38fde3280b3317bb68f19fab70e9176201c
https://github.com/llvm/llvm-project/commit/5563c38fde3280b3317bb68f19fab70e9176201c
Author: Martin Storsjö <martin at martin.st>
Date: 2022-08-11 (Thu, 11 Aug 2022)
Changed paths:
M llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
Log Message:
-----------
[JITLink] Silence GCC warnings about parentheses around && and || operators
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");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the All-commits
mailing list