Skip to content

Commit 6be3351

Browse files
Fix test case for texture
Signed-off-by: Ahmed, Daiyaan <daiyaan.ahmed@intel.com>
1 parent 05008f7 commit 6be3351

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

clang/lib/DPCT/RulesLang/RulesLang.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2770,7 +2770,8 @@ const Expr *getAssignedBO(const Expr *E, ASTContext &Context,
27702770
} else if (auto BO = dyn_cast<BinaryOperator>(E)) {
27712771
// If E is BinaryOperator, return E only when it is assign expression,
27722772
// otherwise return nullptr.
2773-
if (BO->getOpcode() == BO_Assign)
2773+
auto Opcode = BO->getOpcode();
2774+
if (Opcode == BO_Assign || Opcode == BO_OrAssign)
27742775
return BO;
27752776
} else if (auto COCE = dyn_cast<CXXOperatorCallExpr>(E)) {
27762777
if (COCE->getOperator() == OO_Equal) {

0 commit comments

Comments
 (0)