Fix some scary bugs that VC++ detected.

llvm-svn: 19941
This commit is contained in:
Chris Lattner 2005-01-31 00:10:45 +00:00
parent e9772aea47
commit 2977b857c2
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];