* use .create_nil_codeptr instead of .create_pint(0) for writing the placeholder

address of implementation field in tobjcrttiwriter.gen_objc_cat_methods

git-svn-id: trunk@34705 -
This commit is contained in:
nickysn 2016-10-10 15:40:10 +00:00
parent 9669e5aa00
commit 501b9481c5

View File

@ -541,7 +541,7 @@ begin
tcb.emit_tai(Tai_const.Create_sym(lab),ldef);
{ placeholder for address of implementation? }
if (abi=oa_nonfragile) then
tcb.emit_tai(Tai_const.Create_pint(0),ptruinttype);
tcb.emit_tai(Tai_const.Create_nil_codeptr,codeptruinttype);
end;
list.concatList(
tcb.get_final_asmlist(