aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorYang Fan <nullptr.cpp@gmail.com>2021-04-09 10:22:56 +0800
committerYang Fan <nullptr.cpp@gmail.com>2021-04-09 10:22:56 +0800
commitca55f0511698e5b64538e02eff9f6b2280282b15 (patch)
treeca5ef7a466c3fa8835619d741f1132f3ae5735b1 /llvm/lib/CodeGen/MachineInstr.cpp
parent49c79e3b56448dbcd34aaf61e3678f7d6f5fcf80 (diff)
downloadllvm-ca55f0511698e5b64538e02eff9f6b2280282b15.zip
llvm-ca55f0511698e5b64538e02eff9f6b2280282b15.tar.gz
llvm-ca55f0511698e5b64538e02eff9f6b2280282b15.tar.bz2
[clang][SourceManager] Fix -Wparentheses warning (NFC)
GCC warning: ``` /llvm-project/clang/lib/Basic/SourceManager.cpp: In instantiation of ‘constexpr T likelyhasbetween(T, unsigned char, unsigned char) [with T = long unsigned int]’: /llvm-project/clang/lib/Basic/SourceManager.cpp:1292:52: required from here /llvm-project/clang/lib/Basic/SourceManager.cpp:1264:48: warning: suggest parentheses around ‘+’ in operand of ‘&’ [-Wparentheses] 1264 | (x & ~static_cast<T>(0) / 255 * 127) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 1265 | (~static_cast<T>(0) / 255 * (127 - (m - 1)))) & | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions