Fix undefined behavior: binding null pointer to reference. No functionality change.

llvm-svn: 161853
This commit is contained in:
Richard Smith 2012-08-14 05:31:26 +00:00
parent eb22b069bb
commit 2e1fc547c0

View File

@ -42,7 +42,7 @@ MachineSSAUpdater::MachineSSAUpdater(MachineFunction &MF,
}
MachineSSAUpdater::~MachineSSAUpdater() {
delete &getAvailableVals(AV);
delete static_cast<AvailableValsTy*>(AV);
}
/// Initialize - Reset this object to get ready for a new set of SSA