aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-10-19 22:39:55 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-10-20 00:10:22 +0300
commit3355284b2d7652cd2f7ae01aa0323ea3f963641b (patch)
tree98b9b3bcd882b20c784334462eab874ae4608ab3 /clang/lib/Frontend/CompilerInvocation.cpp
parentd605a119939a91477c0eb223d3a5d7d912825daa (diff)
downloadllvm-3355284b2d7652cd2f7ae01aa0323ea3f963641b.zip
llvm-3355284b2d7652cd2f7ae01aa0323ea3f963641b.tar.gz
llvm-3355284b2d7652cd2f7ae01aa0323ea3f963641b.tar.bz2
[NFC][SCEVExpander] isHighCostExpansionHelper(): rewrite as a switch
If we switch over an enum, compiler can easily issue a diagnostic if some case is not handled. However with an if cascade that isn't so. Experimental evidence suggests new behavior to be superior.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions