forked from rubyjs/libv8-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around clang++ 15.0.7 compiler bug
Refs: nodejs/node#54576
- Loading branch information
1 parent
b305a1e
commit a8f58ab
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/deps/v8/src/base/small-vector.h b/deps/v8/src/base/small-vector.h | ||
index edaab3a7a6..533a536178 100644 | ||
--- a/deps/v8/src/base/small-vector.h | ||
+++ b/deps/v8/src/base/small-vector.h | ||
@@ -20,9 +20,6 @@ namespace base { | ||
// dynamic storage when it overflows. | ||
template <typename T, size_t kSize, typename Allocator = std::allocator<T>> | ||
class SmallVector { | ||
- // Currently only support trivially copyable and trivially destructible data | ||
- // types, as it uses memcpy to copy elements and never calls destructors. | ||
- ASSERT_TRIVIALLY_COPYABLE(T); | ||
static_assert(std::is_trivially_destructible<T>::value); | ||
|
||
public: |