Fixes for ptr array deref codegen (#11191)

* fixes for ptr array derefence codegen
* fix comments, make diff nicer
This commit is contained in:
Jasper Jenkins 2019-05-06 23:14:38 -07:00 • committed by Andreas Rumpf
commit a6ba3116b2
4 changed files with 36 additions and 40 deletions

View file

@ -768,6 +768,8 @@ type
lfHeader, # include header file for symbol
lfImportCompilerProc, # ``importc`` of a compilerproc
lfSingleUse # no location yet and will only be used once
lfEnforceDeref # a copyMem is required to dereference if this a
# ptr array due to C array limitations. See #1181, #6422, #11171
TStorageLoc* = enum
OnUnknown, # location is unknown (stack, heap or static)
OnStatic, # in a static section