mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Fixed bug in numHeritagePasses
This commit is contained in:
parent
1560158d2a
commit
7dea6d1f41
4 changed files with 13 additions and 5 deletions
|
@ -759,6 +759,15 @@ bool ConditionalExecution::verify(void)
|
|||
return true;
|
||||
}
|
||||
|
||||
/// Set up for testing ConditionalExecution on multiple iblocks
|
||||
/// \param f is the function to do testing on
|
||||
ConditionalExecution::ConditionalExecution(Funcdata *f)
|
||||
|
||||
{
|
||||
fd = f;
|
||||
buildHeritageArray(); // Cache an array depending on the particular heritage pass
|
||||
}
|
||||
|
||||
/// The given block is tested as a possible \b iblock. If this configuration
|
||||
/// works and is not a \b directsplit, \b true is returned.
|
||||
/// If the configuration works as a \b directsplit, then recursively check that
|
||||
|
@ -772,7 +781,6 @@ bool ConditionalExecution::trial(BlockBasic *ib)
|
|||
|
||||
{
|
||||
iblock = ib;
|
||||
buildHeritageArray();
|
||||
if (!verify()) return false;
|
||||
|
||||
PcodeOp *cbranch_copy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue