Fix AVR build after 777180a32b6107
authorNico Weber <thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000 (19:22 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 29 Jan 2020 00:22:22 +0000 (19:22 -0500)
llvm/lib/Target/AVR/AVRTargetMachine.cpp

index b33284b..0c7136e 100644 (file)
@@ -49,7 +49,7 @@ AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT,
     : LLVMTargetMachine(T, AVRDataLayout, TT, getCPU(CPU), FS, Options,
                         getEffectiveRelocModel(RM),
                         getEffectiveCodeModel(CM, CodeModel::Small), OL),
-      SubTarget(TT, getCPU(CPU), FS, *this) {
+      SubTarget(TT, std::string(getCPU(CPU)), std::string(FS), *this) {
   this->TLOF = std::make_unique<AVRTargetObjectFile>();
   initAsmInfo();
 }