aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorMax Kazantsev <max.kazantsev@azul.com>2018-03-27 09:40:51 +0000
committerMax Kazantsev <max.kazantsev@azul.com>2018-03-27 09:40:51 +0000
commitb1ad66ff12991ac4ef464de2540199f784cbcffd (patch)
treec7b705cca950fc27a0a93c38c1dd027a01dce613 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent90b7f4f72c3d7725cf8d782e271df1f0329c24d6 (diff)
downloadllvm-b1ad66ff12991ac4ef464de2540199f784cbcffd.zip
llvm-b1ad66ff12991ac4ef464de2540199f784cbcffd.tar.gz
llvm-b1ad66ff12991ac4ef464de2540199f784cbcffd.tar.bz2
[LoopUnroll][NFC] Remove redundant canPeel check
We check `canPeel` twice: when evaluating the number of iterations to be peeled and within the method `peelLoop` that performs peeling. This method is only executed if the calculated peel count is positive. Thus, the check in `peelLoop` can never fail. This patch replaces this check with an assert. Differential Revision: https://reviews.llvm.org/D44919 Reviewed By: fhahn llvm-svn: 328615
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions