mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
fixed tests related to recent merge of GP-1073
This commit is contained in:
parent
23228098be
commit
36c09abc31
2 changed files with 6 additions and 13 deletions
|
@ -766,17 +766,10 @@ public class FGProvider extends VisualGraphComponentProvider<FGVertex, FGEdge, F
|
|||
Address minAddress = vertexAddresses.getMinAddress();
|
||||
|
||||
Symbol primary = symbolTable.getPrimarySymbol(minAddress);
|
||||
if (!primary.isDynamic()) {
|
||||
return;
|
||||
// if there is a symbol, then the block should not be merged
|
||||
if (primary == null) {
|
||||
controller.mergeVertexWithParent(destinationVertex);
|
||||
}
|
||||
|
||||
ReferenceManager referenceManager = currentProgram.getReferenceManager();
|
||||
ReferenceIterator references = referenceManager.getReferencesTo(minAddress);
|
||||
if (references.hasNext()) {
|
||||
return; // other references to this vertex entry point
|
||||
}
|
||||
|
||||
controller.mergeVertexWithParent(destinationVertex);
|
||||
}
|
||||
|
||||
private void handleReferenceAdded(DomainObjectChangeRecord record) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue