From 800a0f81e9536b95897a7cf78bca666cd6a721c2 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 29 Jan 2020 00:59:16 -0800 Subject: [PATCH] [ARC] Fix ARCTargetMachine after 777180a32b6107 --- llvm/lib/Target/ARC/ARCTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/ARC/ARCTargetMachine.cpp b/llvm/lib/Target/ARC/ARCTargetMachine.cpp index ab74fecb7804..4a5b6fd4d5bf 100644 --- a/llvm/lib/Target/ARC/ARCTargetMachine.cpp +++ b/llvm/lib/Target/ARC/ARCTargetMachine.cpp @@ -39,7 +39,7 @@ ARCTargetMachine::ARCTargetMachine(const Target &T, const Triple &TT, TT, CPU, FS, Options, getRelocModel(RM), getEffectiveCodeModel(CM, CodeModel::Small), OL), TLOF(std::make_unique()), - Subtarget(TT, CPU, FS, *this) { + Subtarget(TT, std::string(CPU), std::string(FS), *this) { initAsmInfo(); }