[all-commits] [llvm/llvm-project] b10899: [clang] Fix -Wlogical-op-parentheses in Clang.cpp ...
Jie Fu via All-commits
all-commits at lists.llvm.org
Tue Jul 11 16:54:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b10899d869954e1426684cbc20a43d7303075d49
https://github.com/llvm/llvm-project/commit/b10899d869954e1426684cbc20a43d7303075d49
Author: Jie Fu <jiefu at tencent.com>
Date: 2023-07-12 (Wed, 12 Jul 2023)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
Log Message:
-----------
[clang] Fix -Wlogical-op-parentheses in Clang.cpp (NFC)
/Users/jiefu/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp:7345:56: error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
(WholeProgramVTables || SanitizeArgs.needsLTO()) &&
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/jiefu/llvm-project/clang/lib/Driver/ToolChains/Clang.cpp:7345:56: note: place parentheses around the '&&' expression to silence this warning
(WholeProgramVTables || SanitizeArgs.needsLTO()) &&
^
(
1 error generated.
More information about the All-commits
mailing list