]> granicus.if.org Git - clang/commitdiff
Fix unused variable warning in r332724
authorEric Liu <ioeric@google.com>
Fri, 18 May 2018 16:29:42 +0000 (16:29 +0000)
committerEric Liu <ioeric@google.com>
Fri, 18 May 2018 16:29:42 +0000 (16:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/CommonArgs.cpp

index b7e86cb0436d594214709990255ac6304a45591b..4f3d46e2462606151e7a1e8bf2497acadf5dc624 100644 (file)
@@ -1330,6 +1330,7 @@ void tools::AddHIPLinkerScript(const ToolChain &TC, Compilation &C,
       C.getSingleOffloadToolChain<Action::OFK_HIP>());
   assert(HIPTC->getTriple().getArch() == llvm::Triple::amdgcn &&
          "Wrong platform");
+  (void)HIPTC;
 
   // Construct clang-offload-bundler command to bundle object files for
   // for different GPU archs.