diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-23 21:14:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-23 21:14:09 +0000 |
commit | e657eb17cc57258e8d9370346ff5aa8fb98714dc (patch) | |
tree | c9aae05016fabb28c9f43e87cf9ea2a895e4c9e8 /llvm/lib/Analysis/DataStructure/Local.cpp | |
parent | befe4c510e81d167c66853e481faaee7ccc138f9 (diff) | |
download | bcm5719-llvm-e657eb17cc57258e8d9370346ff5aa8fb98714dc.tar.gz bcm5719-llvm-e657eb17cc57258e8d9370346ff5aa8fb98714dc.zip |
Fix a really nasty bug with the -disable-ds-field-sensitivity option
llvm-svn: 13681
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/Local.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/Local.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/DataStructure/Local.cpp b/llvm/lib/Analysis/DataStructure/Local.cpp index c969cc6621b..995c115af9f 100644 --- a/llvm/lib/Analysis/DataStructure/Local.cpp +++ b/llvm/lib/Analysis/DataStructure/Local.cpp @@ -130,6 +130,9 @@ namespace { DSNode *createNode(const Type *Ty = 0) { DSNode *N = new DSNode(Ty, &G); // Create the node if (DisableFieldSensitivity) { + // Create node handle referring to the old node so that it is + // immediately removed from the graph when the node handle is destroyed. + DSNodeHandle OldNNH = N; N->foldNodeCompletely(); if (DSNode *FN = N->getForwardNode()) N = FN; |