aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-26 11:12:51 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-26 11:16:12 -0800
commit29906a675d9da025fc428d1cb95ed1a0f7bfb691 (patch)
tree1581dd68108d1b749dc17d33a0df0d495f5b5ffc /src/parseTools.js
parent37d83ff57f5ddcf584e93695cadba623614b1fdc (diff)
parse hex floats in vector literals
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 08cf9b60..134cb89a 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -603,10 +603,11 @@ function parseLLVMSegment(segment) {
type = segment[0].text;
if (type[type.length-1] === '>' && segment[1].text[0] === '<') {
// vector literal
+ var nativeType = getVectorNativeType(type);
return {
intertype: 'vector',
idents: splitTokenList(segment[1].tokens).map(function(pair) {
- return pair[1].text;
+ return parseNumerical(pair[1].text, nativeType);
}),
type: type
};