projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fa8d571
)
Set SSARegMap to NULL after deleting it.
author
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 22 Nov 2002 22:32:15 +0000
(22:32 +0000)
committer
Misha Brukman
<brukman+llvm@gmail.com>
Fri, 22 Nov 2002 22:32:15 +0000
(22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4822
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineFunction.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineFunction.h
b/include/llvm/CodeGen/MachineFunction.h
index f4a5180e32238d98f254f7f2c430b4222822beca..0e0aa51036744e38522a9410ba401be72b5a150c 100644
(file)
--- 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;