diff options
Diffstat (limited to 'community/llvm3.7/llvm-ValueMap-fix.patch')
-rw-r--r-- | community/llvm3.7/llvm-ValueMap-fix.patch | 11 |
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); |