Skip to content

Commit b02f223

Browse files
dhruvachakronlieb
authored andcommitted
[clang] [XteamReduction] Fix for assertion failure in OvO suite.
Change-Id: I26bbd82c382e6775791e53375a96633acf1b795f
1 parent 78450ce commit b02f223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ bool CodeGenFunction::EmitXteamRedStmt(const Stmt *S) {
575575
if (OpcRedBO == BO_AddAssign) {
576576
RedRHSExpr = RedBO->getRHS()->IgnoreImpCasts();
577577
} else {
578-
const Expr *L1RhsExpr = RedBO->getRHS();
578+
const Expr *L1RhsExpr = RedBO->getRHS()->IgnoreImpCasts();
579579
assert(isa<BinaryOperator>(L1RhsExpr) &&
580580
"Expected rhs to be a binary operator");
581581
const BinaryOperator *L2BO = cast<BinaryOperator>(L1RhsExpr);

0 commit comments

Comments
 (0)