aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-05-12 06:53:48 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-05-12 06:53:48 +0000
commit0c1f598cfa39091c575fc9f1df128fd2236bc506 (patch)
tree4d67d868b68b9d56fd93a14831b64bd9c33e50af /llvm/lib/Support/APInt.cpp
parentd1ec738502b24454f98bee9cd1206aa2854a4eb8 (diff)
downloadllvm-0c1f598cfa39091c575fc9f1df128fd2236bc506.zip
llvm-0c1f598cfa39091c575fc9f1df128fd2236bc506.tar.gz
llvm-0c1f598cfa39091c575fc9f1df128fd2236bc506.tar.bz2
[Support/Compiler.h] - Use gnu::fallthrough for LLVM_FALLTHROUGH when available.
I tried to compile LLD using GCC 7.1.0 and got warnings like "warning: this statement may fall through [-Wimplicit-fallthrough=]" (some more details are here: D32907) GCC's __cplusplus value is 201402L by default, so macro expands to nothing, though GCC 7 has support for [[fallthrough]]. Patch uses gnu::fallthrough when it is available and fixes warning I am observing. Initial idea of way to fix belongs to Davide Italiano. Differential revision: https://reviews.llvm.org/D33036 llvm-svn: 302878
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions