Skip to content

Commit 615359a

Browse files
committed
Use getCalledOperand() accessor instead of the raw operand list.
Less error prone. No functional change.
1 parent 6336892 commit 615359a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/YkIR/YkIRWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class YkIRWriter {
423423
// OPERAND 0: What to call.
424424
//
425425
// In LLVM IR this is the final operand, which is a cause of confusion.
426-
serialiseOperand(I, VLMap, I->getOperand(NumOpers - 1));
426+
serialiseOperand(I, VLMap, I->getCalledOperand());
427427

428428
// Now the rest of the operands.
429429
for (unsigned OI = 0; OI < I->arg_size(); OI++) {

0 commit comments

Comments
 (0)