From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/lib/TextAPI/MachO/ArchitectureSet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/TextAPI/MachO/ArchitectureSet.cpp') diff --git a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp index c589671199b79..f665706fad811 100644 --- a/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp +++ b/llvm/lib/TextAPI/MachO/ArchitectureSet.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// #include "llvm/TextAPI/MachO/ArchitectureSet.h" +#include "llvm/Support/raw_ostream.h" namespace llvm { namespace MachO { @@ -40,7 +41,7 @@ ArchitectureSet::operator std::string() const { std::string result; auto size = count(); for (auto arch : *this) { - result.append(getArchitectureName(arch)); + result.append(std::string(getArchitectureName(arch))); size -= 1; if (size) result.append(" "); -- cgit v1.2.3