aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-13 14:35:53 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-08 16:03:19 -0700
commitda97bd385f882508d17b4b7db946c9cf0d5ba4de (patch)
treeeb05f13f85b32ef2e925e759525b1d3eaa7a0b0e
parent0bd965b60cade7c610dcb0c882e2780bdb6905d6 (diff)
remove nocapture in aligned byval
-rw-r--r--src/parseTools.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 05e874cc..b655d13e 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -396,6 +396,9 @@ function parseParamTokens(params) {
// handle 'byval' and 'byval align X'. We store the alignment in 'byVal'
byVal = QUANTUM_SIZE;
segment.splice(1, 1);
+ if (segment[1] && segment[1].text === 'nocapture') {
+ segment.splice(1, 1);
+ }
if (segment[1] && segment[1].text === 'align') {
assert(isNumber(segment[2].text));
byVal = parseInt(segment[2].text);