[clang] 1192747 - NFC, add a missing stdlib include for the use of abort
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 08:51:04 PDT 2020
Author: Alex Lorenz
Date: 2020-09-29T08:50:51-07:00
New Revision: 119274748bce6d1248aa57cb55d79bfeae8a2f8e
URL: https://github.com/llvm/llvm-project/commit/119274748bce6d1248aa57cb55d79bfeae8a2f8e
DIFF: https://github.com/llvm/llvm-project/commit/119274748bce6d1248aa57cb55d79bfeae8a2f8e.diff
LOG: NFC, add a missing stdlib include for the use of abort
The FatalErrorHandler.cpp file uses 'abort', but doesn't include
'stdlib.h'. This causes a build error when modules are used in clang.
Added:
Modified:
clang/tools/libclang/FatalErrorHandler.cpp
Removed:
################################################################################
diff --git a/clang/tools/libclang/FatalErrorHandler.cpp b/clang/tools/libclang/FatalErrorHandler.cpp
index 6b435fcfcc95..ef21569637f0 100644
--- a/clang/tools/libclang/FatalErrorHandler.cpp
+++ b/clang/tools/libclang/FatalErrorHandler.cpp
@@ -9,6 +9,7 @@
#include "clang-c/FatalErrorHandler.h"
#include "llvm/Support/ErrorHandling.h"
+#include <stdlib.h>
static void aborting_fatal_error_handler(void *, const std::string &reason,
bool) {
More information about the cfe-commits
mailing list