mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Rename findRegisterUseOperand to findRegisterUseOperandIdx to avoid confusion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -435,7 +435,8 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &mf) {
|
||||
"Cannot have a live-in virtual register!");
|
||||
HandlePhysRegUse(*I, Ret);
|
||||
// Add live-out registers as implicit uses.
|
||||
Ret->addRegOperand(*I, false, true);
|
||||
if (Ret->findRegisterUseOperandIdx(*I) == -1)
|
||||
Ret->addRegOperand(*I, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user