From d9e55fa52191d564b9ff45c14e582d94ad2a4b56 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Mon, 29 Jul 2019 23:28:44 +0000 Subject: [PATCH] Fix Linux build r367274 broke it llvm-svn: 367276 --- clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp index 114d0815ba4c..28af84e2f70e 100644 --- a/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp +++ b/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp @@ -188,7 +188,7 @@ void DirectoryWatcherLinux::InotifyPollingLoop() { alignas(struct inotify_event) char buffer[EventBufferLength]; }; auto ManagedBuffer = llvm::make_unique(); - char *const Buf = ManagedBuffer.buffer; + char *const Buf = ManagedBuffer->buffer; const int EpollFD = epoll_create1(EPOLL_CLOEXEC); if (EpollFD == -1) {