diff options
author | David L. Jones <dlj@google.com> | 2018-11-17 04:48:54 +0000 |
---|---|---|
committer | David L. Jones <dlj@google.com> | 2018-11-17 04:48:54 +0000 |
commit | 2d4c18b3cc69ad0c09ceb39fb3651c416ac7b3a8 (patch) | |
tree | 492eb26ed2a15b61bb6759a626a523c13a4ecf4b /lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | |
parent | 8ca7a0dcb7e9a0cd7bf71ff4b70e12462c16f205 (diff) |
Fix unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp')
-rw-r--r-- | lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 && |