another bug fix
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1993 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
72b99ed91f
commit
b91b9d8c55
|
@ -138,10 +138,8 @@ public class TypeBasedPointerAnalysis extends AbstractPointerAnalysis {
|
||||||
BimodalMutableIntSet s = new BimodalMutableIntSet();
|
BimodalMutableIntSet s = new BimodalMutableIntSet();
|
||||||
for (Iterator it = c.iterator(); it.hasNext();) {
|
for (Iterator it = c.iterator(); it.hasNext();) {
|
||||||
IClass klass = (IClass) it.next();
|
IClass klass = (IClass) it.next();
|
||||||
int index = getInstanceKeyMapping().getMappedIndex(new ConcreteTypeKey(klass));
|
int index = getInstanceKeyMapping().add(new ConcreteTypeKey(klass));
|
||||||
if (index >= 0) {
|
s.add(index);
|
||||||
s.add(index);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return new OrdinalSet<InstanceKey>(s, getInstanceKeyMapping());
|
return new OrdinalSet<InstanceKey>(s, getInstanceKeyMapping());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue