[polly] r334166 - Fix a missing lambda return type that tripped the builders

Philip Pfaffe via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 7 00:50:55 PDT 2018


Author: pfaffe
Date: Thu Jun  7 00:50:55 2018
New Revision: 334166

URL: http://llvm.org/viewvc/llvm-project?rev=334166&view=rev
Log:
Fix a missing lambda return type that tripped the builders

Modified:
    polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp

Modified: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp?rev=334166&r1=334165&r2=334166&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp (original)
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp Thu Jun  7 00:50:55 2018
@@ -1408,7 +1408,7 @@ const std::map<std::string, std::string>
 ///
 /// 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;




More information about the llvm-commits mailing list