From 7b8ba17761180d272d7fa0c1c7371e5b0b9b3872 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 22 Nov 2002 22:32:15 +0000 Subject: [PATCH] Set SSARegMap to NULL after deleting it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4822 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.11.0