aboutsummaryrefslogtreecommitdiffstats
path: root/community/llvm3.7/llvm-ValueMap-fix.patch
diff options
context:
space:
mode:
authoralpine-mips-patches <info@mobile-stream.com>2018-12-04 17:42:27 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-12-17 14:37:00 +0000
commit610072d44b6b988b341e2890b63de436228819a7 (patch)
treee303860b020336a96446825dc36865c2a5033de7 /community/llvm3.7/llvm-ValueMap-fix.patch
parent74df6ca2c50ee22be009efc1285a9c120e8f29a6 (diff)
downloadaports-610072d44b6b988b341e2890b63de436228819a7.tar.bz2
aports-610072d44b6b988b341e2890b63de436228819a7.tar.xz
community/llvm3.7: fix build with gcc8
Diffstat (limited to 'community/llvm3.7/llvm-ValueMap-fix.patch')
-rw-r--r--community/llvm3.7/llvm-ValueMap-fix.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/llvm3.7/llvm-ValueMap-fix.patch b/community/llvm3.7/llvm-ValueMap-fix.patch
new file mode 100644
index 0000000000..a8f6631c26
--- /dev/null
+++ b/community/llvm3.7/llvm-ValueMap-fix.patch
@@ -0,0 +1,11 @@
+--- a/include/llvm/IR/ValueMap.h
++++ b/include/llvm/IR/ValueMap.h
+@@ -99,7 +99,7 @@
+ 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);