summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/rocblas/0001-Fix-compilation-error-with-StringRef-to-basic-string.patch
blob: 54845c5a4ad15b8c468dfb5be4c68d2865f3d6f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From f4e7ceba4593540d6d6bf35a958d187cc84c5172 Mon Sep 17 00:00:00 2001
From: Harmen Stoppels <harmenstoppels@gmail.com>
Date: Mon, 10 Aug 2020 23:39:22 +0200
Subject: [PATCH] Fix compilation error with StringRef to basic string

---
 Tensile/Tensile/Source/lib/include/Tensile/llvm/YAML.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Tensile/Tensile/Source/lib/include/Tensile/llvm/YAML.hpp b/Tensile/Tensile/Source/lib/include/Tensile/llvm/YAML.hpp
index 16e64ff9..0d00f470 100644
--- a/Tensile/Tensile/Source/lib/include/Tensile/llvm/YAML.hpp
+++ b/Tensile/Tensile/Source/lib/include/Tensile/llvm/YAML.hpp
@@ -261,7 +261,7 @@ namespace llvm
 
             static void inputOne(IO& io, StringRef key, Hide<T>& value)
             {
-                Impl::inputOne(io, key, *value);
+                Impl::inputOne(io, key.str(), *value);
             }
 
             static void output(IO& io, Hide<T>& value)
-- 
2.25.1