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 | 085ec01d6b16ff665f52fc2df89a1cc2a49cfb00 (patch) | |
tree | f0ad0b57eecce5791c6f3dda76f275ef12368ff3 /clang/lib/CodeGen | |
parent | e34a761d5b2b71a4a79a5ce05ce2af5f11a16a64 (diff) | |
download | bcm5719-llvm-085ec01d6b16ff665f52fc2df89a1cc2a49cfb00.tar.gz bcm5719-llvm-085ec01d6b16ff665f52fc2df89a1cc2a49cfb00.zip |
Fix unused variable warning.
llvm-svn: 347133
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp index da1c0d2a3a9..c9a7c4c3f68 100644 --- a/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp +++ b/clang/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 && |