소스 검색

* volatile syms should never be regable

git-svn-id: trunk@42308 -
Jonas Maebe 6 년 전
부모
커밋
6b97c712f6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      compiler/symsym.pas

+ 2 - 0
compiler/symsym.pas

@@ -1701,6 +1701,8 @@ implementation
 
     procedure tabstractvarsym.setregable;
       begin
+        if vo_volatile in varoptions then
+          exit;
          { can we load the value into a register ? }
         if not assigned(owner) or
            (owner.symtabletype in [localsymtable, parasymtable]) or