[llvm] ce70eb7 - Fix AVR build after 777180a32b6107
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 16:22:31 PST 2020
Author: Nico Weber
Date: 2020-01-28T19:22:22-05:00
New Revision: ce70eb76ea052be14dcfe5e75f38163d8d0b5b62
URL: https://github.com/llvm/llvm-project/commit/ce70eb76ea052be14dcfe5e75f38163d8d0b5b62
DIFF: https://github.com/llvm/llvm-project/commit/ce70eb76ea052be14dcfe5e75f38163d8d0b5b62.diff
LOG: Fix AVR build after 777180a32b6107
Added:
Modified:
llvm/lib/Target/AVR/AVRTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
index b33284b73d63..0c7136e6f77e 100644
--- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp
+++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp
@@ -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();
}
More information about the llvm-commits
mailing list