[llvm] d53840a - [VE][fix] Explicit StringRef to std::string conversion
Simon Moll via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 01:34:51 PST 2020
Author: Simon Moll
Date: 2020-01-29T10:34:28+01:00
New Revision: d53840ad39138e3861a38174226ed884c7fb9298
URL: https://github.com/llvm/llvm-project/commit/d53840ad39138e3861a38174226ed884c7fb9298
DIFF: https://github.com/llvm/llvm-project/commit/d53840ad39138e3861a38174226ed884c7fb9298.diff
LOG: [VE][fix] Explicit StringRef to std::string conversion
Adapt to changes of "[ADT] Make StringRef's std::string conversion
operator explicit" (777180a32).
Added:
Modified:
llvm/lib/Target/VE/VETargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VETargetMachine.cpp b/llvm/lib/Target/VE/VETargetMachine.cpp
index 46f5c0dc1805..e1d66c823be2 100644
--- a/llvm/lib/Target/VE/VETargetMachine.cpp
+++ b/llvm/lib/Target/VE/VETargetMachine.cpp
@@ -73,7 +73,8 @@ VETargetMachine::VETargetMachine(const Target &T, const Triple &TT,
: LLVMTargetMachine(T, computeDataLayout(TT), TT, CPU, FS, Options,
getEffectiveRelocModel(RM),
getEffectiveCodeModel(CM, CodeModel::Small), OL),
- TLOF(createTLOF()), Subtarget(TT, CPU, FS, *this) {
+ TLOF(createTLOF()),
+ Subtarget(TT, std::string(CPU), std::string(FS), *this) {
initAsmInfo();
}
More information about the llvm-commits
mailing list