Fix custom type_ptr to char* and char

Summary: They were reusing same type and it lead to wrong type in cache for one of them

Reviewed By: jvillard

Differential Revision: D3462759

fbshipit-source-id: 8e10678
master
Andrzej Kotulski 9 years ago committed by Facebook Github Bot 4
parent f915564f52
commit 4d90ef99f0

@ -86,6 +86,9 @@ let create_id_type =
let create_nsarray_star_type =
new_constant_type_ptr ()
let create_char_type =
new_constant_type_ptr ()
let create_char_star_type =
new_constant_type_ptr ()

@ -19,6 +19,8 @@ val dummy_source_range : unit -> source_range
val dummy_stmt_info : unit -> stmt_info
val create_char_type : type_ptr
val create_char_star_type : type_ptr
val create_id_type : type_ptr

@ -60,12 +60,11 @@ let add_predefined_basic_types () =
let sil_id_type = CType_to_sil_type.get_builtin_objc_type `ObjCId in
add_basic_type create_int_type `Int;
add_basic_type create_void_type `Void;
add_basic_type create_char_star_type `Char_S;
add_basic_type create_char_type `Char_S;
add_basic_type create_BOOL_type `SChar;
add_basic_type create_unsigned_long_type `ULong;
add_pointer_type create_void_star_type sil_void_type;
add_pointer_type create_char_star_type sil_char_type;
add_pointer_type create_char_star_type sil_char_type;
add_pointer_type create_nsarray_star_type sil_nsarray_type;
add_pointer_type create_id_type sil_id_type;
add_function_type create_void_unsigned_long_type sil_void_type;

Loading…
Cancel
Save