We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e1708 commit 59ab4beCopy full SHA for 59ab4be
clang/lib/CodeGen/CGOpenMPRuntime.cpp
@@ -4993,9 +4993,11 @@ void CGOpenMPRuntime::emitPrivateReduction(
4993
continue;
4994
4995
BinaryOperatorKind BO = BO_Comma;
4996
- if (const auto *BORHS =
4997
- dyn_cast<BinaryOperator>(RHSExpr->IgnoreParenImpCasts())) {
+ const Expr *StripRHS = RHSExpr->IgnoreParenImpCasts();
+ if (const auto *BORHS = dyn_cast<BinaryOperator>(StripRHS)) {
4998
BO = BORHS->getOpcode();
4999
+ } else if (const auto *OpCall = dyn_cast<CXXOperatorCallExpr>(StripRHS)) {
5000
+ BO = BinaryOperator::getOverloadedOpcode(OpCall->getOperator());
5001
}
5002
5003
LValue SharedLV = CGF.MakeAddrLValue(SharedResult, PrivateType);
0 commit comments