diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-03-06 08:56:47 -0800 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2025-03-06 09:08:21 -0800 |
| commit | bdf50f029232d30e820dfc222bee8eecd3945155 (patch) | |
| tree | 4794039f39cba0a09d3c7d0fc68c6bd8d457e7f7 /llvm/lib/CodeGen/LiveVariables.cpp | |
| parent | d0b8f5d8b3e11b283695558c3bcdea7629e9838b (diff) | |
[CodeGen] Use Register or MCRegister. NFC
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index d50b7c0c24f8..cfdaacd1b86b 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -597,9 +597,9 @@ void LiveVariables::runOnBlock(MachineBasicBlock *MBB, unsigned NumRegs) { // if they have PHI nodes, and if so, we simulate an assignment at the end // of the current block. if (!PHIVarInfo[MBB->getNumber()].empty()) { - SmallVectorImpl<unsigned> &VarInfoVec = PHIVarInfo[MBB->getNumber()]; + SmallVectorImpl<Register> &VarInfoVec = PHIVarInfo[MBB->getNumber()]; - for (unsigned I : VarInfoVec) + for (Register I : VarInfoVec) // Mark it alive only in the block we are representing. MarkVirtRegAliveInBlock(getVarInfo(I), MRI->getVRegDef(I)->getParent(), MBB); |
