[all-commits] [llvm/llvm-project] 60a598: [NFC][Attributor] Fix warning in last commit
Roman Lebedev via All-commits
all-commits at lists.llvm.org
Wed Dec 7 15:51:08 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 60a59807a558d4ccf06dd8aa348e75c4dc02f2c6
https://github.com/llvm/llvm-project/commit/60a59807a558d4ccf06dd8aa348e75c4dc02f2c6
Author: Roman Lebedev <lebedev.ri at gmail.com>
Date: 2022-12-08 (Thu, 08 Dec 2022)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Attributor.h
Log Message:
-----------
[NFC][Attributor] Fix warning in last commit
```
/repositories/llvm-project/llvm/include/llvm/Transforms/IPO/Attributor.h:5076:47: note: cast one or both operands to int to silence this warning
1 warning generated.
[ 89% 599/666][ 75% 00:48 + 00:15] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o
In file included from /repositories/llvm-project/llvm/lib/Passes/PassBuilderPipelines.cpp:42:
/repositories/llvm-project/llvm/include/llvm/Transforms/IPO/Attributor.h:5076:47: warning: use of bitwise '|' with boolean operands [-Wbitwise-instead-of-logical]
bool isWriteOrAssumption() const { return isWrite() | isAssumption(); }
^~~~~~~~~~~~~~~~~~~~~~~~~~
||
```
More information about the All-commits
mailing list