Browse Source

* use Create_nil_dataptr in objectdef_rtti_class_full() when writing the current vmt address for objects that have no vmt

git-svn-id: trunk@25200 -
nickysn 12 years ago
parent
commit
875e676441
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ncgrtti.pas

+ 1 - 1
compiler/ncgrtti.pas

@@ -859,7 +859,7 @@ implementation
               if (oo_has_vmt in def.objectoptions) then
                 current_asmdata.asmlists[al_rtti].concat(Tai_const.Createname(def.vmt_mangledname,0))
               else
-                current_asmdata.asmlists[al_rtti].concat(Tai_const.create_sym(nil));
+                current_asmdata.asmlists[al_rtti].concat(Tai_const.Create_nil_dataptr);
 
             { write parent typeinfo }
             write_rtti_reference(def.childof,fullrtti);