Skip to content

Commit 2ac6afd

Browse files
committed
Ignore more general instructions.
1 parent c890b73 commit 2ac6afd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/StreamStateMachine.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,11 +1022,12 @@ public void start(Set<Stream> streamSet, EclipseProjectAnalysisEngine<InstanceKe
10221022
// search through each instruction in the
10231023
// block.
10241024
int processedInstructions = 0;
1025+
10251026
for (SSAInstruction instruction : block) {
1026-
// if it's a phi instruction.
1027-
if (instruction instanceof SSAPhiInstruction)
1028-
// skip it. The pointer analysis
1029-
// below will handle it.
1027+
// if it's not an invoke instruction.
1028+
if (!(instruction instanceof SSAAbstractInvokeInstruction))
1029+
// skip it. Phi instructions will be handled by the pointer analysis
1030+
// below.
10301031
continue;
10311032

10321033
// Get the possible receivers. This

0 commit comments

Comments
 (0)