[llvm] 2dd9a4d - [SmallVector] Include stdexcept if LLVM_ENABLE_EXCEPTIONS
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 18:06:58 PDT 2020
Author: Fangrui Song
Date: 2020-09-03T18:06:08-07:00
New Revision: 2dd9a4d855f6a6d3e84dd4d1e489e6265d206732
URL: https://github.com/llvm/llvm-project/commit/2dd9a4d855f6a6d3e84dd4d1e489e6265d206732
DIFF: https://github.com/llvm/llvm-project/commit/2dd9a4d855f6a6d3e84dd4d1e489e6265d206732.diff
LOG: [SmallVector] Include stdexcept if LLVM_ENABLE_EXCEPTIONS
std::length_error needs stdexcept.
Added:
Modified:
llvm/include/llvm/ADT/SmallVector.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h
index 5d8658f61271..8197b8688a52 100644
--- a/llvm/include/llvm/ADT/SmallVector.h
+++ b/llvm/include/llvm/ADT/SmallVector.h
@@ -32,6 +32,9 @@
#include <new>
#include <type_traits>
#include <utility>
+#ifdef LLVM_ENABLE_EXCEPTIONS
+#include <stdexcept>
+#endif
namespace llvm {
More information about the llvm-commits
mailing list