[clang] Fix an unused variable warning
authorKazu Hirata <kazu@google.com>
Wed, 21 Sep 2022 00:41:58 +0000 (17:41 -0700)
committerKazu Hirata <kazu@google.com>
Wed, 21 Sep 2022 00:41:58 +0000 (17:41 -0700)
This patch fixes:

  clang/lib/Driver/ToolChains/PS4CPU.cpp:159:14: error: unused
  variable 'IsPS5' [-Werror,-Wunused-variable]

clang/lib/Driver/ToolChains/PS4CPU.cpp

index fc905ff..989bdb4 100644 (file)
@@ -158,6 +158,7 @@ void tools::PScpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   const bool IsPS4 = TC.getTriple().isPS4();
   const bool IsPS5 = TC.getTriple().isPS5();
   assert(IsPS4 || IsPS5);
+  (void)IsPS5;
 
   ArgStringList DbgOpts;