[ARC] Fix ARCTargetMachine after 777180a32b6107
authorFangrui Song <maskray@google.com>
Wed, 29 Jan 2020 08:59:16 +0000 (00:59 -0800)
committerFangrui Song <maskray@google.com>
Wed, 29 Jan 2020 08:59:16 +0000 (00:59 -0800)
llvm/lib/Target/ARC/ARCTargetMachine.cpp

index ab74fec..4a5b6fd 100644 (file)
@@ -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<TargetLoweringObjectFileELF>()),
-      Subtarget(TT, CPU, FS, *this) {
+      Subtarget(TT, std::string(CPU), std::string(FS), *this) {
   initAsmInfo();
 }