r347133 - Fix unused variable warning.
David L. Jones via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 16 20:48:54 PST 2018
Author: dlj
Date: Fri Nov 16 20:48:54 2018
New Revision: 347133
URL: http://llvm.org/viewvc/llvm-project?rev=347133&view=rev
Log:
Fix unused variable warning.
Modified:
cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp?rev=347133&r1=347132&r2=347133&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp Fri Nov 16 20:48:54 2018
@@ -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 &&
More information about the cfe-commits
mailing list