diff options
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 3dd9979a785..04ea874e206 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -1497,7 +1497,7 @@ Generic_GCC::CudaInstallationDetector::init(const Driver &D, CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-7.0"); } - for (const auto CudaPath : CudaPathCandidates) { + for (const auto &CudaPath : CudaPathCandidates) { if (CudaPath.empty() || !llvm::sys::fs::exists(CudaPath)) continue; |

