mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: llvm-3.6: Fix build.
* gnu/packages/patches/llvm-3.6-fix-build-with-gcc-10.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/llvm.scm (llvm-3.6)[source]: Use it.
This commit is contained in:
parent
1ac5bd7c0b
commit
99d288a6b1
3 changed files with 17 additions and 0 deletions
13
gnu/packages/patches/llvm-3.6-fix-build-with-gcc-10.patch
Normal file
13
gnu/packages/patches/llvm-3.6-fix-build-with-gcc-10.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Adapted from https://github.com/digego/extempore/pull/322/files
|
||||
|
||||
--- a/include/llvm/IR/ValueMap.h 2015-08-04 00:30:24.000000000 +0200
|
||||
+++ b/include/llvm/IR/ValueMap.h 2018-07-14 21:09:09.769502736 +0200
|
||||
@@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue