aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-06-26 14:37:06 -0700
committerKazu Hirata <kazu@google.com>2024-06-26 14:37:06 -0700
commit2f57df5826a6df8ad5549ed98aede0d60e01e08b (patch)
treea78ff6591384530b41309e73121b83625cf22b0f
parent2582d11f1a8a5783828156d3ced354727f422885 (diff)
downloadllvm-2f57df5826a6df8ad5549ed98aede0d60e01e08b.zip
llvm-2f57df5826a6df8ad5549ed98aede0d60e01e08b.tar.gz
llvm-2f57df5826a6df8ad5549ed98aede0d60e01e08b.tar.bz2
[CodeGen] Fix a warning
This patch fixes: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1662:8: error: unused variable 'ParallelReduction' [-Werror,-Wunused-variable]
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
index fb71b27..f4eba14 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
@@ -1668,6 +1668,7 @@ void CGOpenMPRuntimeGPU::emitReduction(
if (Options.SimpleReduction) {
assert(!TeamsReduction && !ParallelReduction &&
"Invalid reduction selection in emitReduction.");
+ (void)ParallelReduction;
CGOpenMPRuntime::emitReduction(CGF, Loc, Privates, LHSExprs, RHSExprs,
ReductionOps, Options);
return;