diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-31 00:10:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-31 00:10:45 +0000 |
commit | cff8ac20caefd48c040fdda5acdb8f1b35cd84ab (patch) | |
tree | 18d289a88daa19bc42ee6169977174eb1f5ef4d9 | |
parent | 6538f42208e0edb4fd5344573f82d1cf59bb465d (diff) |
Fix some scary bugs that VC++ detected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19941 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 2 | ||||
-rw-r--r-- | lib/Analysis/DataStructure/TopDownClosure.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 0b4d5c1f58..4774664dfb 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -363,7 +363,7 @@ void BUDataStructures::deleteValue(Value *V) { 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/lib/Analysis/DataStructure/TopDownClosure.cpp b/lib/Analysis/DataStructure/TopDownClosure.cpp index 8c0db6dc55..85c83a1656 100644 --- a/lib/Analysis/DataStructure/TopDownClosure.cpp +++ b/lib/Analysis/DataStructure/TopDownClosure.cpp @@ -304,7 +304,7 @@ void TDDataStructures::deleteValue(Value *V) { 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]; |