[PATCH] D12989: [CUDA] Added CUDA installation detector class.

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 21:32:32 PDT 2015


chapuni added a subscriber: chapuni.

================
Comment at: cfe/trunk/lib/Driver/ToolChains.cpp:1492
@@ +1491,3 @@
+                                            const llvm::opt::ArgList &Args) {
+  SmallVector<StringRef, 4> CudaPathCandidates;
+
----------------
Fixed in r248459.

================
Comment at: cfe/trunk/lib/Driver/ToolChains.cpp:1498
@@ +1497,3 @@
+  else {
+    CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda");
+    CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-7.0");
----------------
You were trying to make StringRef from temporary string concatenator.


Repository:
  rL LLVM

http://reviews.llvm.org/D12989





More information about the cfe-commits mailing list