aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-07-31 12:58:27 -0700
committerGitHub <noreply@github.com>2025-07-31 12:58:27 -0700
commit2737d013a0194304b026826cfa46ba302dd4dadc (patch)
tree46c37e02261d68e01cc4165282c5a7873d2408e7 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent37e03b56b8172d73ebd755a210fcfa031133220a (diff)
downloadllvm-2737d013a0194304b026826cfa46ba302dd4dadc.zip
llvm-2737d013a0194304b026826cfa46ba302dd4dadc.tar.gz
llvm-2737d013a0194304b026826cfa46ba302dd4dadc.tar.bz2
[SelectionDAG] Improve the doxygen description for SDValue::isOperandOf. NFC (#151244)
SDValue::isOperandOf checks the result number in addition to the SDNode*. SDNode::isOperandOf only checks the SDNode*.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 02d1100..f41b6eb 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -12782,7 +12782,7 @@ bool SDNode::areOnlyUsersOf(ArrayRef<const SDNode *> Nodes, const SDNode *N) {
return Seen;
}
-/// isOperand - Return true if this node is an operand of N.
+/// Return true if the referenced return value is an operand of N.
bool SDValue::isOperandOf(const SDNode *N) const {
return is_contained(N->op_values(), *this);
}