mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-02 02:22:31 +00:00
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:
parent
6538f42208
commit
cff8ac20ca
@ -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];
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user