[PATCH] D71965: include missing <cstdlib> for std::abort
Khem Raj via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 28 10:48:50 PST 2019
raj.khem created this revision.
raj.khem added reviewers: kadircet, jfb.
raj.khem added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, usaxena95, arphaman, dexonsmith, jkorous, ilya-biryukov.
Herald added a project: clang.
Fixes
TOPDIR/build/tmp/work-shared/llvm-project-source-10.0.0-r0/git/clang-tools-extra/clangd/Shutdown.cpp:21:10: error: no member named 'abort' in namespace 'std'
std::abort();
~~~~~^
TOPDIR/build/tmp/work-shared/llvm-project-source-10.0.0-r0/git/clang-tools-extra/clangd/Shutdown.cpp:30:10: error: no member named 'abort' in namespace 'std'
std::abort();
~~~~~^
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71965
Files:
clang-tools-extra/clangd/Shutdown.cpp
Index: clang-tools-extra/clangd/Shutdown.cpp
===================================================================
--- clang-tools-extra/clangd/Shutdown.cpp
+++ clang-tools-extra/clangd/Shutdown.cpp
@@ -9,6 +9,7 @@
#include "Shutdown.h"
#include <atomic>
+#include <cstdlib>
#include <thread>
namespace clang {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71965.235484.patch
Type: text/x-patch
Size: 317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191228/4a866629/attachment.bin>
More information about the cfe-commits
mailing list