commit | 2977b857c2ab5927170f919b1996abbbc0ba54ee | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Mon Jan 31 00:10:45 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Mon Jan 31 00:10:45 2005 +0000 |
tree | b91d1f00cba444315d7674f28a2673e68e5fcec6 | |
parent | e9772aea4731d91f5c8cec3e2ee0f22d493e83b8 [diff] |
Fix some scary bugs that VC++ detected. llvm-svn: 19941
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp index 0b4d5c1..4774664 100644 --- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp
@@ -363,7 +363,7 @@ return; } - if (Function *F = dyn_cast<Function>(F)) { + if (Function *F = dyn_cast<Function>(V)) { assert(getDSGraph(*F).getReturnNodes().size() == 1 && "cannot handle scc's"); delete DSInfo[F];
diff --git a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp index 8c0db6d..85c83a1 100644 --- a/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/TopDownClosure.cpp
@@ -304,7 +304,7 @@ return; } - if (Function *F = dyn_cast<Function>(F)) { + if (Function *F = dyn_cast<Function>(V)) { assert(getDSGraph(*F).getReturnNodes().size() == 1 && "cannot handle scc's"); delete DSInfo[F];