forked from OSchip/llvm-project
Fix thinko. Update return status appropriately.
llvm-svn: 40546
This commit is contained in:
parent
0f692f27a3
commit
a51e0a3d8d
|
@ -65,7 +65,7 @@ bool CondProp::runOnFunction(Function &F) {
|
||||||
MadeChange = false;
|
MadeChange = false;
|
||||||
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
|
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
|
||||||
SimplifyBlock(BB);
|
SimplifyBlock(BB);
|
||||||
EverMadeChange = MadeChange;
|
EverMadeChange = EverMadeChange || MadeChange;
|
||||||
} while (MadeChange);
|
} while (MadeChange);
|
||||||
return EverMadeChange;
|
return EverMadeChange;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue