From 610072d44b6b988b341e2890b63de436228819a7 Mon Sep 17 00:00:00 2001 From: alpine-mips-patches Date: Tue, 4 Dec 2018 17:42:27 +0000 Subject: community/llvm3.7: fix build with gcc8 --- community/llvm3.7/llvm-ValueMap-fix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 community/llvm3.7/llvm-ValueMap-fix.patch (limited to 'community/llvm3.7/llvm-ValueMap-fix.patch') 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); -- cgit v1.2.3