aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-19 14:37:34 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-19 14:38:21 +0100
commit71e39e3f1867032a2fc0c19fa8d4881b39fc5a49 (patch)
treeab3472c7731bdf9ac806b9c9489e1a973950179f /clang/lib/Frontend/CompilerInvocation.cpp
parent7df912c65d1963c5403f1d645329b20f7e2d60ea (diff)
downloadllvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.zip
llvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.tar.gz
llvm-71e39e3f1867032a2fc0c19fa8d4881b39fc5a49.tar.bz2
[ADT] Add APInt::isNegatedPowerOf2() helper
Inspired by D111968, provide a isNegatedPowerOf2() wrapper instead of obfuscating code with (-Value).isPowerOf2() patterns, which I'm sure are likely avenues for typos..... Differential Revision: https://reviews.llvm.org/D111998
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions