Return std::string itself instead StringRef to a temporary std::string.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253410
91177308-0d34-0410-b5e6-
96231b3b80d8
/// \brief Get the detected Cuda device library path.
StringRef getLibDevicePath() const { return CudaLibDevicePath; }
/// \brief Get libdevice file for given architecture
- StringRef getLibDeviceFile(StringRef Gpu) const {
+ std::string getLibDeviceFile(StringRef Gpu) const {
return CudaLibDeviceMap.lookup(Gpu);
}
};