[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h
Misha Brukman
brukman at cs.uiuc.edu
Fri Nov 22 16:33:00 PST 2002
Changes in directory llvm/include/llvm/CodeGen:
MachineFunction.h updated: 1.20 -> 1.21
---
Log message:
Set SSARegMap to NULL after deleting it.
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.20 llvm/include/llvm/CodeGen/MachineFunction.h:1.21
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.20 Tue Nov 19 18:53:10 2002
+++ llvm/include/llvm/CodeGen/MachineFunction.h Fri Nov 22 16:32:15 2002
@@ -97,7 +97,10 @@
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;
More information about the llvm-commits
mailing list