aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-10-19 22:28:44 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-10-20 00:10:22 +0300
commite0567582b8b1def8656f4a5addce0909fa51c86e (patch)
tree18422bb6438e294076d62210504c1bc790b236e9 /clang/lib/Frontend/CompilerInvocation.cpp
parentd4b0aa9773a98f5072384bda414e70f6df335237 (diff)
downloadllvm-e0567582b8b1def8656f4a5addce0909fa51c86e.zip
llvm-e0567582b8b1def8656f4a5addce0909fa51c86e.tar.gz
llvm-e0567582b8b1def8656f4a5addce0909fa51c86e.tar.bz2
[NFCI][SCEV] Always refer to enum SCEVTypes as enum, not integer
The main tricky thing here is forward-declaring the enum: we have to specify it's underlying data type. In particular, this avoids the danger of switching over the SCEVTypes, but actually switching over an integer, and not being notified when some case is not handled. I have updated most of such switches to be exaustive and not have a default case, where it's pretty obvious to be the intent, however not all of them.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions