Skip to content

Commit b7bc1d0

Browse files
committed
[CodeGen] Fix return type of PHI_iterator::getIncomingValue. NFC.
This is supposed to match ValT aka Register.
1 parent 3bc765d commit b7bc1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineSSAUpdater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class SSAUpdaterTraits<MachineSSAUpdater> {
286286
bool operator==(const PHI_iterator& x) const { return idx == x.idx; }
287287
bool operator!=(const PHI_iterator& x) const { return !operator==(x); }
288288

289-
unsigned getIncomingValue() { return PHI->getOperand(idx).getReg(); }
289+
Register getIncomingValue() { return PHI->getOperand(idx).getReg(); }
290290

291291
MachineBasicBlock *getIncomingBlock() {
292292
return PHI->getOperand(idx+1).getMBB();

0 commit comments

Comments
 (0)