Fix a missing lambda return type that tripped the builders

llvm-svn: 334166
This commit is contained in:
Philip Pfaffe 2018-06-07 07:50:55 +00:00
parent 083a0c1621
commit 30c5e4ad35

View File

@ -1408,7 +1408,7 @@ const std::map<std::string, std::string> IntrinsicToLibdeviceFunc = {
///
/// Return "" if we are not compiling for CUDA.
std::string getCUDALibDeviceFuntion(Function *F) {
const std::string FnName = [&] {
auto FnName = [&] () -> const std::string {
auto It = IntrinsicToLibdeviceFunc.find(F->getName());
if (It != IntrinsicToLibdeviceFunc.end())
return It->second;