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

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 21:34:16 PDT 2015


Aha, nice catch!

-eric

On Wed, Sep 23, 2015 at 9:32 PM NAKAMURA Takumi <geek4civic at 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150924/04957781/attachment.html>


More information about the cfe-commits mailing list