Skip to content

Commit d0266d2

Browse files
committed
CHB:TYPE: remove handling of void pointer
1 parent 1974ae0 commit d0266d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CodeHawk/CHB/bchlib/bCHTypeConstraintUtil.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,7 @@ let rec mk_btype_constraint (tv: type_variable_t) (ty: btype_t)
443443
| TComp (key, _) ->
444444
let cinfo = bcfiles#get_compinfo key in
445445
Some (TyGround (TyVariable tv, TyConstant (TyTStruct (key, cinfo.bcname))))
446-
| TPtr (TVoid _, _) ->
447-
Some (TyGround (TyVariable tv, TyConstant TyVoidPtr))
446+
| TPtr (TVoid _, _) -> None
448447
| TPtr (pty, _) ->
449448
let ptv = add_deref_capability tv in
450449
mk_btype_constraint ptv pty

0 commit comments

Comments
 (0)