mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Initialize members to fix problem found by valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa226bccaa
commit
ab5ceacbc1
@ -20,7 +20,8 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
RegisterClassInfo::RegisterClassInfo() : Tag(0), TRI(0) {}
|
||||
RegisterClassInfo::RegisterClassInfo() : Tag(0), MF(0), TRI(0), CalleeSaved(0)
|
||||
{}
|
||||
|
||||
void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
|
||||
bool Update = false;
|
||||
@ -35,7 +36,7 @@ void RegisterClassInfo::runOnMachineFunction(const MachineFunction &mf) {
|
||||
|
||||
// Does this MF have different CSRs?
|
||||
const unsigned *CSR = TRI->getCalleeSavedRegs(MF);
|
||||
if (CSR != CalleeSaved) {
|
||||
if (Update || CSR != CalleeSaved) {
|
||||
// Build a CSRNum map. Every CSR alias gets an entry pointing to the last
|
||||
// overlapping CSR.
|
||||
CSRNum.reset(new uint8_t[TRI->getNumRegs()]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user