[llvm] 395a369 - [Xtensa] Fix build after splitting SDNode::use_iterator

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 10:53:09 PST 2024


Author: Sylvestre Ledru
Date: 2024-12-19T19:52:53+01:00
New Revision: 395a369056e1a9b55015b81a8667f39f1f48457f

URL: https://github.com/llvm/llvm-project/commit/395a369056e1a9b55015b81a8667f39f1f48457f
DIFF: https://github.com/llvm/llvm-project/commit/395a369056e1a9b55015b81a8667f39f1f48457f.diff

LOG: [Xtensa] Fix build after splitting SDNode::use_iterator

Same as: 145ddf7ede28d9131a65b7f86ad07736a824ee21

Added: 
    

Modified: 
    llvm/lib/Target/Xtensa/XtensaISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp b/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
index 6dfda02b7622b8..e8ede330bbac56 100644
--- a/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
+++ b/llvm/lib/Target/Xtensa/XtensaISelLowering.cpp
@@ -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());


        


More information about the llvm-commits mailing list