Skip to content

Commit 2f57df5

Browse files
[CodeGen] Fix a warning
This patch fixes: clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp:1662:8: error: unused variable 'ParallelReduction' [-Werror,-Wunused-variable]
1 parent 2582d11 commit 2f57df5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,7 @@ void CGOpenMPRuntimeGPU::emitReduction(
16681668
if (Options.SimpleReduction) {
16691669
assert(!TeamsReduction && !ParallelReduction &&
16701670
"Invalid reduction selection in emitReduction.");
1671+
(void)ParallelReduction;
16711672
CGOpenMPRuntime::emitReduction(CGF, Loc, Privates, LHSExprs, RHSExprs,
16721673
ReductionOps, Options);
16731674
return;

0 commit comments

Comments
 (0)