forked from OSchip/llvm-project
Fix for use-after-free which caused test failure in cuda-detect.cu.
Return std::string itself instead StringRef to a temporary std::string. llvm-svn: 253410
This commit is contained in:
parent
6196aa06c9
commit
6e50375286
|
@ -186,7 +186,7 @@ protected:
|
|||
/// \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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue