summaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains/CommonArgs.cpp
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-05-18 16:29:42 +0000
committerEric Liu <ioeric@google.com>2018-05-18 16:29:42 +0000
commitaaec3ca0fb05adb38fc76402a2bd9d22daa7591a (patch)
tree0dd24ae3ee9d5850c810fb6f25b7f3b43115e8b4 /lib/Driver/ToolChains/CommonArgs.cpp
parent20e9101add0b8e12a1cedfb0c3092f030acaa897 (diff)
downloadclang-aaec3ca0fb05adb38fc76402a2bd9d22daa7591a.tar.gz
Fix unused variable warning in r332724
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332734 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/CommonArgs.cpp')
-rw-r--r--lib/Driver/ToolChains/CommonArgs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
index b7e86cb043..4f3d46e246 100644
--- a/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
@@ -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.