]> granicus.if.org Git - clang/commitdiff
Fix unused variable warning.
authorDavid L. Jones <dlj@google.com>
Sat, 17 Nov 2018 04:48:54 +0000 (04:48 +0000)
committerDavid L. Jones <dlj@google.com>
Sat, 17 Nov 2018 04:48:54 +0000 (04:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347133 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp

index da1c0d2a3a9d0177af50e729ca69ef683dd1e635..c9a7c4c3f68183f2c48c0c57626568a2dad8478e 100644 (file)
@@ -4000,7 +4000,9 @@ void CGOpenMPRuntimeNVPTX::emitReduction(
     return;
 
   bool ParallelReduction = isOpenMPParallelDirective(Options.ReductionKind);
+#ifndef NDEBUG
   bool TeamsReduction = isOpenMPTeamsDirective(Options.ReductionKind);
+#endif
 
   if (Options.SimpleReduction) {
     assert(!TeamsReduction && !ParallelReduction &&