[llvm] 800a0f8 - [ARC] Fix ARCTargetMachine after 777180a32b6107
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 00:59:58 PST 2020
Author: Fangrui Song
Date: 2020-01-29T00:59:16-08:00
New Revision: 800a0f81e9536b95897a7cf78bca666cd6a721c2
URL: https://github.com/llvm/llvm-project/commit/800a0f81e9536b95897a7cf78bca666cd6a721c2
DIFF: https://github.com/llvm/llvm-project/commit/800a0f81e9536b95897a7cf78bca666cd6a721c2.diff
LOG: [ARC] Fix ARCTargetMachine after 777180a32b6107
Added:
Modified:
llvm/lib/Target/ARC/ARCTargetMachine.cpp
Removed:
################################################################################
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<TargetLoweringObjectFileELF>()),
- Subtarget(TT, CPU, FS, *this) {
+ Subtarget(TT, std::string(CPU), std::string(FS), *this) {
initAsmInfo();
}
More information about the llvm-commits
mailing list