Remove use of deprecated function theEmptyTupleObject.

This commit is contained in:
Taus Brock-Nannestad
2019-03-08 14:00:16 +01:00
parent 116e262c62
commit a74a2060f5
2 changed files with 2 additions and 2 deletions

View File

@@ -1625,7 +1625,7 @@ module PointsTo {
context.isRuntime() and
exists(ControlFlowNode param |
param = def.getDefiningNode() |
varargs_points_to(param, cls) and value = theEmptyTupleObject() and origin = param
varargs_points_to(param, cls) and value = TupleObject::empty() and origin = param
or
varargs_points_to(param, cls) and value = param and origin = param
or

View File

@@ -130,7 +130,7 @@ class Object extends @py_object {
or
this = theFalseObject() and result = false
or
this = theEmptyTupleObject() and result = false
this = TupleObject::empty() and result = false
or
exists(Tuple t | t = this.getOrigin() |
exists(t.getAnElt()) and result = true