[llvm] 93bbe7b - [VE][fix] (more) explicit StringRef to std::string
Simon Moll via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 01:47:56 PST 2020
Author: Simon Moll
Date: 2020-01-29T10:46:59+01:00
New Revision: 93bbe7b2b5f4ff3960a3733b7d610f869210ede2
URL: https://github.com/llvm/llvm-project/commit/93bbe7b2b5f4ff3960a3733b7d610f869210ede2
DIFF: https://github.com/llvm/llvm-project/commit/93bbe7b2b5f4ff3960a3733b7d610f869210ede2.diff
LOG: [VE][fix] (more) explicit StringRef to std::string
Added:
Modified:
llvm/lib/Target/VE/VESubtarget.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/VE/VESubtarget.cpp b/llvm/lib/Target/VE/VESubtarget.cpp
index 861e88cdb583..a0b78d95e3cf 100644
--- a/llvm/lib/Target/VE/VESubtarget.cpp
+++ b/llvm/lib/Target/VE/VESubtarget.cpp
@@ -28,7 +28,7 @@ void VESubtarget::anchor() {}
VESubtarget &VESubtarget::initializeSubtargetDependencies(StringRef CPU,
StringRef FS) {
// Determine default and user specified characteristics
- std::string CPUName = CPU;
+ std::string CPUName = std::string(CPU);
if (CPUName.empty())
CPUName = "ve";
More information about the llvm-commits
mailing list