浏览代码

* use LOC_REGISTER instead of LOC_CREGISTER for constant string pointers

git-svn-id: trunk@11661 -
Jonas Maebe 17 年之前
父节点
当前提交
ffeba2fd10
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgcon.pas

+ 1 - 1
compiler/ncgcon.pas

@@ -403,7 +403,7 @@ implementation
            end;
            end;
          if cst_type in [cst_ansistring, cst_widestring] then
          if cst_type in [cst_ansistring, cst_widestring] then
            begin
            begin
-             location_reset(location, LOC_CREGISTER, OS_ADDR);
+             location_reset(location, LOC_REGISTER, OS_ADDR);
              reference_reset_symbol(href, lab_str, 0);
              reference_reset_symbol(href, lab_str, 0);
              location.register:=cg.getaddressregister(current_asmdata.CurrAsmList);
              location.register:=cg.getaddressregister(current_asmdata.CurrAsmList);
              cg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,href,location.register);
              cg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,href,location.register);