From: Davide Italiano Date: Tue, 1 Dec 2015 02:38:42 +0000 (+0000) Subject: [Windows] Follow-up r254363, remove return. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=5d2885f554db8eb89a3e2b376c4d6507d456eed2 [Windows] Follow-up r254363, remove return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254364 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/DynamicLibrary.inc b/lib/Support/Windows/DynamicLibrary.inc index 77146d47cf2..e612283e630 100644 --- a/lib/Support/Windows/DynamicLibrary.inc +++ b/lib/Support/Windows/DynamicLibrary.inc @@ -60,10 +60,8 @@ DynamicLibrary DynamicLibrary::getPermanentLibrary(const char *filename, if (OpenedHandles == 0) OpenedHandles = new DenseSet(); - if (!fEnumerateLoadedModules) { + if (!fEnumerateLoadedModules) assert(loadDebugHelp() && "These APIs should always be available"); - return DynamicLibrary(); - } fEnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0); // Dummy library that represents "search all handles".