From 255d6c9fe5a7577c6caf78004034f2555bd0cba0 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 4 Jul 2022 21:20:19 +0200 Subject: Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787 This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-15358-g53dc0f10787. PR: 265425 MFC after: 2 weeks (cherry picked from commit 81ad626541db97eb356e2c1d4a20eb2a26a766ab) --- contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp') diff --git a/contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp b/contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp index 2bcdbdcdb9b0..7b9d7abe7545 100644 --- a/contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp +++ b/contrib/llvm-project/llvm/lib/Support/DynamicLibrary.cpp @@ -12,14 +12,11 @@ #include "llvm/Support/DynamicLibrary.h" #include "llvm-c/Support.h" -#include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/Config/config.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/Mutex.h" -#include -#include #include using namespace llvm; @@ -29,14 +26,14 @@ using namespace llvm::sys; class DynamicLibrary::HandleSet { typedef std::vector HandleList; HandleList Handles; - void *Process; + void *Process = nullptr; public: static void *DLOpen(const char *Filename, std::string *Err); static void DLClose(void *Handle); static void *DLSym(void *Handle, const char *Symbol); - HandleSet() : Process(nullptr) {} + HandleSet() = default; ~HandleSet(); HandleList::iterator Find(void *Handle) { return find(Handles, Handle); } -- cgit v1.2.3