Set SSARegMap to NULL after deleting it.

llvm-svn: 4822
This commit is contained in:
Misha Brukman 2002-11-22 22:32:15 +00:00
parent aa91eae6af
commit 31457f066d
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ public:
void addRegMap(unsigned Reg, const TargetRegisterClass *RegClass) {
SSARegMapping->addRegMap(Reg, RegClass);
}
void clearSSARegMap() { delete SSARegMapping; }
void clearSSARegMap() {
delete SSARegMapping;
SSARegMapping = NULL;
}
// Provide accessors for the MachineBasicBlock list...
typedef iplist<MachineBasicBlock> BasicBlockListType;