diff options
author | Chris Lattner <sabre@nondot.org> | 2002-11-06 18:01:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-11-06 18:01:39 +0000 |
commit | 2b79f4b7c3b3f8f76515273386c82f8f707e1dc1 (patch) | |
tree | 45c7acad7ea7ff98d104c5a60fc2cc0c7e2d663c /llvm/lib/Analysis/DataStructure/DataStructure.cpp | |
parent | 075a8d7341b200bc9d87bec45b4e7818389c6451 (diff) | |
download | bcm5719-llvm-2b79f4b7c3b3f8f76515273386c82f8f707e1dc1.tar.gz bcm5719-llvm-2b79f4b7c3b3f8f76515273386c82f8f707e1dc1.zip |
Make PointerSize & Shift be enums
Fix problem with recursive merging
llvm-svn: 4570
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/DataStructure.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp index 77407ad47a9..740ece86f52 100644 --- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp +++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp @@ -20,11 +20,6 @@ namespace { Statistic<> NumFolds("dsnode", "Number of nodes completely folded"); }; -namespace DS { - const unsigned PointerShift = 3; // 64bit ptrs = 3, 32 bit ptrs = 2 - const unsigned PointerSize = 1 << PointerShift; -}; - namespace DataStructureAnalysis { // TODO: FIXME // isPointerType - Return true if this first class type is big enough to hold // a pointer. @@ -392,7 +387,7 @@ void DSNode::mergeWith(const DSNodeHandle &NH, unsigned Offset) { } N = NH.getNode(); - if (this == N) return; + if (this == N || N == 0) return; // If both nodes are not at offset 0, make sure that we are merging the node // at an later offset into the node with the zero offset. |