Skip to content

Commit 7527547

Browse files
committed
[SelectionDAG] Improve the doxygen description for SDValue::isOperandOf. NFC
I believe it checks the result number in addition to the SDNode *. SDNode::isOperandOf only checks the SDNode.
1 parent bfb6829 commit 7527547

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class SDValue {
182182
return SDValue(Node, R);
183183
}
184184

185-
/// Return true if this node is an operand of N.
185+
/// Return true if the referenced return value is an operand of N.
186186
LLVM_ABI bool isOperandOf(const SDNode *N) const;
187187

188188
/// Return the ValueType of the referenced return value.

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12741,7 +12741,7 @@ bool SDNode::areOnlyUsersOf(ArrayRef<const SDNode *> Nodes, const SDNode *N) {
1274112741
return Seen;
1274212742
}
1274312743

12744-
/// isOperand - Return true if this node is an operand of N.
12744+
/// Return true if the referenced return value is an operand of N.
1274512745
bool SDValue::isOperandOf(const SDNode *N) const {
1274612746
return is_contained(N->op_values(), *this);
1274712747
}

0 commit comments

Comments
 (0)