mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Start with a zeroed CSRNum map.
Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -39,7 +39,7 @@ void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
|
|||||||
if (Update || CSR != CalleeSaved) {
|
if (Update || CSR != CalleeSaved) {
|
||||||
// Build a CSRNum map. Every CSR alias gets an entry pointing to the last
|
// Build a CSRNum map. Every CSR alias gets an entry pointing to the last
|
||||||
// overlapping CSR.
|
// overlapping CSR.
|
||||||
CSRNum.reset(new uint8_t[TRI->getNumRegs()]);
|
CSRNum.reset(new uint8_t[TRI->getNumRegs()]());
|
||||||
for (unsigned N = 0; unsigned Reg = CSR[N]; ++N)
|
for (unsigned N = 0; unsigned Reg = CSR[N]; ++N)
|
||||||
for (const unsigned *AS = TRI->getOverlaps(Reg);
|
for (const unsigned *AS = TRI->getOverlaps(Reg);
|
||||||
unsigned Alias = *AS; ++AS)
|
unsigned Alias = *AS; ++AS)
|
||||||
|
|||||||
Reference in New Issue
Block a user