commit | 28164ab2ac1deea68cdb989f941728bf1860ce41 | [log] [tgz] |
---|---|---|
author | Gabor Greif <ggreif@gmail.com> | Fri Oct 01 22:05:14 2010 +0000 |
committer | Gabor Greif <ggreif@gmail.com> | Fri Oct 01 22:05:14 2010 +0000 |
tree | 6de4bf6c2b9c85021f5a4f6fb9a7bad564a0a7e9 | |
parent | e09f2e96781d8f60cc9e7cb9f6cdecb3fdad8282 [diff] |
Factor out enumerator APSInt adjustment into a helper function (AdjustAPSInt) and use that for adjusting the high bounds of case ranges before APSInt comparisons. Fixes http://llvm.org/bugs/show_bug.cgi?id=8135 Some minor refacorings while I am here. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115355 91177308-0d34-0410-b5e6-96231b3b80d8