mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
no matter if there are other variables having that constant value, it's still constant
This commit is contained in:
+1
-1
@@ -549,7 +549,7 @@ public class DfaMemoryStateImpl implements DfaMemoryState {
|
||||
public DfaConstValue getConstantValue(DfaVariableValue value) {
|
||||
DfaConstValue result = null;
|
||||
for (DfaValue equal : getEqClassesFor(value)) {
|
||||
if (equal == value) continue;
|
||||
if (equal instanceof DfaVariableValue) continue;
|
||||
DfaConstValue constValue = asConstantValue(equal);
|
||||
if (constValue == null) return null;
|
||||
result = constValue;
|
||||
|
||||
Reference in New Issue
Block a user