diff options
author | Hans Wennborg <hans@hanshq.net> | 2013-04-16 08:35:36 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2013-04-16 08:35:36 +0000 |
commit | c9e1d992796ba1dd20004495038fbf18deeadb65 (patch) | |
tree | 20f7e7768048cd93556bb0e5449909c20e450057 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8edce4ee6276df36969283bf98b8bef898fb548c (diff) | |
download | bcm5719-llvm-c9e1d992796ba1dd20004495038fbf18deeadb65.tar.gz bcm5719-llvm-c9e1d992796ba1dd20004495038fbf18deeadb65.zip |
simplifycfg: Fix integer overflow converting switch into icmp.
If a switch instruction has a case for every possible value of its type,
with the same successor, SimplifyCFG would replace it with an icmp ult,
but the computation of the bound overflows in that case, which inverts
the test.
Patch by Jed Davis!
llvm-svn: 179587
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions