~ruther/guix-local

ref: bd86c2c28e7607f6a794dbdbff07385d004979cf guix-local/gnu/packages/patches/llvm-3.x.1-fix-build-with-gcc.patch -rw-r--r-- 533 bytes
bd86c2c2 — Ricardo Wurmus gnu: python-dnspython: Disable ECDSA tests. 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Patch from https://github.com/digego/extempore/issues/318

diff --git a/include/llvm/IR/ValueMap.h.orig b/include/llvm/IR/ValueMap.h
index ad518ac..d928f6a 100644
--- 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 static_cast<bool>(MDMap); }
   MDMapT &MD() {
     if (!MDMap)
       MDMap.reset(new MDMapT);