aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-03 08:29:07 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-03 08:29:07 -0800
commit485cee0a7ae5a251f8a83bbb3e3b02802a1b4591 (patch)
tree0c0b18d7326a7faa04d25061294aa590f895e708 /src
parent651d79a8c4d53f202f1ccf893be6cdd0cd4774f6 (diff)
parse volatile in cmpxchg, closes #875
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index cc0f045d..6c88e765 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -746,6 +746,7 @@ function intertyper(data, sidePass, baseLineNums) {
item.tokens.splice(1, 1);
} else {
assert(item.tokens[0].text == 'cmpxchg')
+ if (item.tokens[1].text == 'volatile') item.tokens.splice(1, 1);
item.op = 'cmpxchg';
}
var last = getTokenIndexByText(item.tokens, ';');