Skip to content

Commit

Permalink
[Xtensa] Fix build after splitting SDNode::use_iterator
Browse files Browse the repository at this point in the history
Same as: 145ddf7
  • Loading branch information
sylvestre committed Dec 19, 2024
1 parent 1808255 commit 395a369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ SDValue XtensaTargetLowering::LowerImmediate(SDValue Op,
return Op;
// Check if use node maybe lowered to the ADDMI instruction
SDNode &OpNode = *Op.getNode();
if ((OpNode.hasOneUse() && OpNode.use_begin()->getOpcode() == ISD::ADD) &&
if ((OpNode.hasOneUse() && OpNode.user_begin()->getOpcode() == ISD::ADD) &&
isShiftedInt<16, 8>(Value))
return Op;
Type *Ty = Type::getInt32Ty(*DAG.getContext());
Expand Down

0 comments on commit 395a369

Please sign in to comment.