aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorQiongsi Wu <274595+qiongsiwu@users.noreply.github.com>2024-01-12 08:54:35 -0500
committerDianQK <dianqk@dianqk.net>2024-05-25 10:38:44 +0800
commit7dc2f6602212bf0a0433c157b70e4fc0d70bb730 (patch)
treecfda2de1f5b538e0cfc5bbf9c3d7075e57e2f51f /clang/lib/Frontend/InitPreprocessor.cpp
parent64ed699b3d811407e5a9f1111f63e11dc7f7dd80 (diff)
downloadllvm-7dc2f6602212bf0a0433c157b70e4fc0d70bb730.zip
llvm-7dc2f6602212bf0a0433c157b70e4fc0d70bb730.tar.gz
llvm-7dc2f6602212bf0a0433c157b70e4fc0d70bb730.tar.bz2
Reland "[SimplifyCFG] `switch`: Do Not Transform the Default Case if the Condition is Too Wide (#77831)"
https://github.com/llvm/llvm-project/pull/76669 taught SimplifyCFG to handle switches when `default` has only one case. When the `switch`'s condition is wider than 64 bit, the current implementation can calculate the wrong default value. This PR skips cases where the condition is too wide. (cherry picked from commit 39bb790b906f4921a5d9fc09e856abe53ae7a320)
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions