Skip to content

Commit 1fdaa06

Browse files
committed
Replace UnionFind.is_ptr_type with existing GoblintCil.isPointerType.
1 parent e09ce9f commit 1fdaa06

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/cdomains/congruenceClosure.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ module MayBeEqual = struct
14691469
let comp = Disequalities.comp_t cc.uf term in
14701470
let valid_term (t, z) =
14711471
let typ = T.type_of_term t in
1472-
T.is_ptr_type typ
1472+
GoblintCil.isPointerType typ
14731473
in
14741474
List.filter valid_term comp
14751475
else

src/cdomains/unionFind.ml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,6 @@ module T = struct
206206
| _ ->
207207
false
208208

209-
let is_ptr_type t =
210-
match Cil.unrollType t with
211-
| TPtr _ -> true
212-
| _ -> false
213-
214209
let aux_term_of_varinfo vinfo =
215210
let var = Var (Var.to_varinfo vinfo) in
216211
let lval = Lval (var, NoOffset) in

0 commit comments

Comments
 (0)