summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index acc8ef0e13c..40886de29d7 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -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;
OpenPOWER on IntegriCloud