aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2002-11-22 22:32:15 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2002-11-22 22:32:15 +0000
commit7b8ba17761180d272d7fa0c1c7371e5b0b9b3872 (patch)
tree3803884ec7e1a88f22c5ee0e2c11f7902803b419 /include
parentfa8d571bd47111187c665b38619e413c871f4edb (diff)
downloadexternal_llvm-7b8ba17761180d272d7fa0c1c7371e5b0b9b3872.zip
external_llvm-7b8ba17761180d272d7fa0c1c7371e5b0b9b3872.tar.gz
external_llvm-7b8ba17761180d272d7fa0c1c7371e5b0b9b3872.tar.bz2
Set SSARegMap to NULL after deleting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index f4a5180..0e0aa51 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<MachineBasicBlock> BasicBlockListType;