From: David L. Jones Date: Sat, 17 Nov 2018 04:48:54 +0000 (+0000) Subject: Fix unused variable warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d4c18b3cc69ad0c09ceb39fb3651c416ac7b3a8;p=clang Fix unused variable warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347133 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index da1c0d2a3a..c9a7c4c3f6 100644 --- a/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp @@ -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 &&