Explorar o código

* volatile syms should never be regable

git-svn-id: trunk@42308 -
Jonas Maebe %!s(int64=6) %!d(string=hai) anos
pai
achega
6b97c712f6
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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