]> granicus.if.org Git - clang/commitdiff
Fix function call to fix build
authorIsmail Donmez <ismail@i10z.com>
Wed, 29 Nov 2017 15:18:02 +0000 (15:18 +0000)
committerIsmail Donmez <ismail@i10z.com>
Wed, 29 Nov 2017 15:18:02 +0000 (15:18 +0000)
../tools/clang/lib/Driver/ToolChains/Cuda.cpp:80:18: error: reference to non-static member function must be called; did you mean to call it with no arguments?
    if (Distro(D.getVFS).IsDebian())
               ~~^~~~~~
                       ()

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319322 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Cuda.cpp

index ed7a08cc1931203326e514792c46cf7be3a86b49..bc4820797b2f4bb90678ae1e404f8d4739280f7b 100644 (file)
@@ -77,7 +77,7 @@ CudaInstallationDetector::CudaInstallationDetector(
     for (const char *Ver : Versions)
       CudaPathCandidates.push_back(D.SysRoot + "/usr/local/cuda-" + Ver);
 
-    if (Distro(D.getVFS).IsDebian())
+    if (Distro(D.getVFS()).IsDebian())
       // Special case for Debian to have nvidia-cuda-toolkit work
       // out of the box. More info on http://bugs.debian.org/882505
       CudaPathCandidates.push_back(D.SysRoot + "/usr/lib/cuda");