Fix some scary bugs that VC++ detected.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-01-31 00:10:45 +00:00
parent 6538f42208
commit cff8ac20ca
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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];