summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDavid L. Jones <dlj@google.com>2018-11-17 04:48:54 +0000
committerDavid L. Jones <dlj@google.com>2018-11-17 04:48:54 +0000
commit085ec01d6b16ff665f52fc2df89a1cc2a49cfb00 (patch)
treef0ad0b57eecce5791c6f3dda76f275ef12368ff3 /clang/lib/CodeGen
parente34a761d5b2b71a4a79a5ce05ce2af5f11a16a64 (diff)
downloadbcm5719-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.cpp2
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 &&
OpenPOWER on IntegriCloud