浏览代码

+ actually set hasofs to true if 'offset' is encountered in BuildConstSymbolExpression

git-svn-id: trunk@38149 -
nickysn 7 年之前
父节点
当前提交
3b1bd8de3f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      compiler/x86/rax86int.pas

+ 4 - 1
compiler/x86/rax86int.pas

@@ -919,7 +919,10 @@ Unit Rax86int;
             AS_OFFSET:
               begin
                 if (actasmtoken = AS_OFFSET) then
-                  needofs:=true
+                  begin
+                    needofs:=true;
+                    hasofs:=true;
+                  end
                 else
                   needvmtofs:=true;
                 Consume(actasmtoken);