From 912f67a8dc867448e0b100816e98e9c795fc7a54 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Sat, 26 Jan 2019 14:09:20 -0800 Subject: [PATCH] llvm: fix error compiling with recent gcc Solution from https://github.com/digego/extempore/issues/318 --- external/bsd/llvm/dist/llvm/include/llvm/IR/ValueMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/bsd/llvm/dist/llvm/include/llvm/IR/ValueMap.h b/external/bsd/llvm/dist/llvm/include/llvm/IR/ValueMap.h index f2ea405f1..a1ab2a500 100644 --- a/external/bsd/llvm/dist/llvm/include/llvm/IR/ValueMap.h +++ b/external/bsd/llvm/dist/llvm/include/llvm/IR/ValueMap.h @@ -101,7 +101,7 @@ public: ~ValueMap() {} - bool hasMD() const { return MDMap; } + bool hasMD() const { return bool(MDMap); } MDMapT &MD() { if (!MDMap) MDMap.reset(new MDMapT);