From 9040306a478056d7bf5c709f044c4cd78fa340a1 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Fri, 6 May 2016 22:22:25 +0000 Subject: [PATCH] cmake: Avoid continue, apparently that's new llvm-svn: 268812 --- cmake/modules/AddLLVM.cmake | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 6bdb76259a0..06d26673e96 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -1059,14 +1059,13 @@ function(add_lit_testsuites project directory) set(cur_to_process ${to_process}) set(to_process) foreach(lit_suite ${cur_to_process}) - if(NOT IS_DIRECTORY ${lit_suite}) - continue() - endif() - string(FIND ${lit_suite} Inputs is_inputs) - if (is_inputs EQUAL -1) - list(APPEND lit_suites "${lit_suite}") - file(GLOB subdirs ${lit_suite}/*) - list(APPEND to_process ${subdirs}) + if(IS_DIRECTORY ${lit_suite}) + string(FIND ${lit_suite} Inputs is_inputs) + if (is_inputs EQUAL -1) + list(APPEND lit_suites "${lit_suite}") + file(GLOB subdirs ${lit_suite}/*) + list(APPEND to_process ${subdirs}) + endif() endif() endforeach() endwhile()