Skip to content

Commit 781d7ae

Browse files
committed
Add comment explaining operand magic number
1 parent a9d9420 commit 781d7ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ void WebAssemblyDAGToDAGISel::Select(SDNode *Node) {
255255
SmallVector<MVT, 4> Returns;
256256

257257
bool IsParam = false;
258+
// Operand 0 is the return register, Operand 1 is the function pointer.
259+
// The remaining operands encode the type of the function we are testing
260+
// for.
258261
for (unsigned I = 2, E = Node->getNumOperands(); I < E; ++I) {
259262
MVT VT = Node->getOperand(I).getValueType().getSimpleVT();
260263
if (VT == MVT::Untyped) {

0 commit comments

Comments
 (0)