diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-11-15 20:24:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-15 20:24:14 +0100 |
commit | 58f3e07b1a84b2cbe1c1fab690b8dd6b9ed5a296 (patch) | |
tree | ef7096e37cb19c340c4bdeb04b4ae2e6bb5ec1d2 /compiler/pragmas.nim | |
parent | 9c46526cfa928f884b06ea78f3f7304bdc626ed1 (diff) | |
download | Nim-58f3e07b1a84b2cbe1c1fab690b8dd6b9ed5a296.tar.gz |
fixes and changes the recently introduced 'alignas' to be 'align' (#12666)
* fixes and changes the recently introduced 'alignas' to be 'align' * more improvements
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 24394bf97..e43004bf8 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -20,7 +20,7 @@ const const declPragmas = {wImportc, wImportObjC, wImportCpp, wImportJs, wExportc, wExportCpp, - wExportNims, wExtern, wDeprecated, wNodecl, wError, wUsed, wAlignas} + wExportNims, wExtern, wDeprecated, wNodecl, wError, wUsed, wAlign} ## common pragmas for declarations, to a good approximation procPragmas* = declPragmas + {FirstCallConv..LastCallConv, wMagic, wNoSideEffect, wSideEffect, wNoreturn, wDynlib, wHeader, @@ -815,7 +815,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, sym.typ.align = floatInt64Align(c.config) else: localError(c.config, it.info, "size may only be 1, 2, 4 or 8") - of wAlignas: + of wAlign: let alignment = expectIntLit(c, it) if alignment == 0: discard |