pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libLLVM38: PATCH to fix building with clang 10.0.0



Module Name:	pkgsrc-wip
Committed By:	Dan Cîrnaț <dan%alt.md@localhost>
Pushed By:	cirnatdan
Date:		Mon May 4 15:04:16 2020 +0200
Changeset:	6f4d2add8815a45215d89887b31a0aa298f19d3e

Modified Files:
	libLLVM38/distinfo
Added Files:
	libLLVM38/patches/patch-include_llvm_IR_ValueMap.h

Log Message:
libLLVM38: PATCH to fix building with clang 10.0.0

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6f4d2add8815a45215d89887b31a0aa298f19d3e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libLLVM38/distinfo                                 |  1 +
 libLLVM38/patches/patch-include_llvm_IR_ValueMap.h | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/libLLVM38/distinfo b/libLLVM38/distinfo
index 511a95cf68..8aad356e55 100644
--- a/libLLVM38/distinfo
+++ b/libLLVM38/distinfo
@@ -5,4 +5,5 @@ RMD160 (llvm-3.8.1.src.tar.xz) = 5e4d2193e7d58abaa70ab53e67b6fe058b781e6a
 SHA512 (llvm-3.8.1.src.tar.xz) = 99bbb2cc5f337fd5edf1621f8028c8cb74011aa4af2531018dc05409b27f7b8d0c2f76a00115f677f7c013029d5d9f55d085a5b40433409aac4e9161d53bd366
 Size (llvm-3.8.1.src.tar.xz) = 16551472 bytes
 SHA1 (patch-cmake_modules_AddLLVM.cmake) = ec89e9469115b22feeb106e1c36b36af1f079576
+SHA1 (patch-include_llvm_IR_ValueMap.h) = 8d8fdde528099d0860e810a25c001727cbee6906
 SHA1 (patch-include_llvm_Support_Host.h) = 55a9fab6ee49ec09a2fd644747a6dddd6b39f942
diff --git a/libLLVM38/patches/patch-include_llvm_IR_ValueMap.h b/libLLVM38/patches/patch-include_llvm_IR_ValueMap.h
new file mode 100644
index 0000000000..aee67defe3
--- /dev/null
+++ b/libLLVM38/patches/patch-include_llvm_IR_ValueMap.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix build with clang 10.0.0 (function must return `bool`)
+
+--- include/llvm/IR/ValueMap.h.orig	2015-08-03 22:30:24.000000000 +0000
++++ include/llvm/IR/ValueMap.h
+@@ -99,7 +99,7 @@ public:
+   explicit ValueMap(const ExtraData &Data, unsigned NumInitBuckets = 64)
+       : Map(NumInitBuckets), Data(Data) {}
+ 
+-  bool hasMD() const { return MDMap; }
++  bool hasMD() const { return bool(MDMap); }
+   MDMapT &MD() {
+     if (!MDMap)
+       MDMap.reset(new MDMapT);


Home | Main Index | Thread Index | Old Index