Aha, nice catch! -eric
On Wed, Sep 23, 2015 at 9:32 PM NAKAMURA Takumi <geek4ci...@gmail.com> wrote: > 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 > > > >
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits