From d53840ad39138e3861a38174226ed884c7fb9298 Mon Sep 17 00:00:00 2001 From: Simon Moll Date: Wed, 29 Jan 2020 10:29:43 +0100 Subject: [PATCH] [VE][fix] Explicit StringRef to std::string conversion Adapt to changes of "[ADT] Make StringRef's std::string conversion operator explicit" (777180a32). --- llvm/lib/Target/VE/VETargetMachine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/Target/VE/VETargetMachine.cpp b/llvm/lib/Target/VE/VETargetMachine.cpp index 46f5c0d..e1d66c8 100644 --- a/llvm/lib/Target/VE/VETargetMachine.cpp +++ b/llvm/lib/Target/VE/VETargetMachine.cpp @@ -73,7 +73,8 @@ VETargetMachine::VETargetMachine(const Target &T, const Triple &TT, : LLVMTargetMachine(T, computeDataLayout(TT), TT, CPU, FS, Options, getEffectiveRelocModel(RM), getEffectiveCodeModel(CM, CodeModel::Small), OL), - TLOF(createTLOF()), Subtarget(TT, CPU, FS, *this) { + TLOF(createTLOF()), + Subtarget(TT, std::string(CPU), std::string(FS), *this) { initAsmInfo(); } -- 2.7.4