projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c2a7bd
)
[SmallVector] Include stdexcept if LLVM_ENABLE_EXCEPTIONS
author
Fangrui Song
<maskray@google.com>
Fri, 4 Sep 2020 01:06:08 +0000
(18:06 -0700)
committer
Fangrui Song
<maskray@google.com>
Fri, 4 Sep 2020 01:06:08 +0000
(18:06 -0700)
std::length_error needs stdexcept.
llvm/include/llvm/ADT/SmallVector.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/SmallVector.h
b/llvm/include/llvm/ADT/SmallVector.h
index
5d8658f
..
8197b86
100644
(file)
--- 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 {