From: Misha Brukman Date: Fri, 22 Nov 2002 22:32:15 +0000 (+0000) Subject: Set SSARegMap to NULL after deleting it. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b8ba17761180d272d7fa0c1c7371e5b0b9b3872;p=llvm Set SSARegMap to NULL after deleting it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4822 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index f4a5180e322..0e0aa510367 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -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 BasicBlockListType;