git: 601ecab5f916 - main - devel/llvm-devel: add missing patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 May 2022 18:47:45 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/ports/commit/?id=601ecab5f916efe7043347207139812b933d7ccc
commit 601ecab5f916efe7043347207139812b933d7ccc
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2022-05-31 18:46:48 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2022-05-31 18:47:36 +0000
devel/llvm-devel: add missing patch
Add the patch mention in cfe8f1001ff0d8d0484883f3b5fd34e03ce61b84.
---
.../files/patch-llvm_include_llvm_ADT_IntervalMap.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/devel/llvm-devel/files/patch-llvm_include_llvm_ADT_IntervalMap.h b/devel/llvm-devel/files/patch-llvm_include_llvm_ADT_IntervalMap.h
new file mode 100644
index 000000000000..431ead9f5ea8
--- /dev/null
+++ b/devel/llvm-devel/files/patch-llvm_include_llvm_ADT_IntervalMap.h
@@ -0,0 +1,14 @@
+--- llvm/include/llvm/ADT/IntervalMap.h.orig
++++ llvm/include/llvm/ADT/IntervalMap.h
+@@ -1042,6 +1042,11 @@
+ new(&rootLeaf()) RootLeaf();
+ }
+
++ IntervalMap(const IntervalMap &Other) : IntervalMap(Other.allocator) {
++ for (auto i = Other.begin(), e = Other.end(); i != e; ++i)
++ insert(i.start(), i.stop(), i.value());
++ }
++
+ ~IntervalMap() {
+ clear();
+ rootLeaf().~RootLeaf();