[llvm] [Windows] Avoid loading shared libraries from load directory (PR #90520)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 16:17:07 PDT 2024


================
@@ -43,6 +43,10 @@ InitLLVM::InitLLVM(int &Argc, const char **&Argv,
   assert(!Initialized && "InitLLVM was already initialized!");
   Initialized = true;
 #endif
+#ifdef _WIN32
+  // Avoid searching the directory from which the application is loaded.
----------------
jofrn wrote:

The intention is to remove the folder from which the application is loaded, not the current directory, as per the comment; thank you for catching this!


https://github.com/llvm/llvm-project/pull/90520


More information about the llvm-commits mailing list