Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
f7b22a91
Commit
f7b22a91
authored
Jul 07, 2014
by
dbarbera
Browse files
Fixed UnknownType in nested sequences
parent
5d0b7059
Changes
1
Hide whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
f7b22a91
...
...
@@ -1213,7 +1213,12 @@ def _sequence(seq):
struct
=
ctx
.
resolve_struct
(
seq
.
exprType
.
ReferencedTypeName
)
struct_ptr
=
ctx
.
builder
.
alloca
(
struct
.
ty
)
seq_asn1ty
=
ctx
.
dataview
[
seq
.
exprType
.
ReferencedTypeName
]
for
field_name
,
field_expr
in
seq
.
value
.
viewitems
():
# Workarround for unknown types in nested sequences
field_expr
.
exprType
=
seq_asn1ty
.
type
.
Children
[
field_name
.
replace
(
'_'
,
'-'
)].
type
field_idx_cons
=
core
.
Constant
.
int
(
ctx
.
i32
,
struct
.
idx
(
field_name
))
field_ptr
=
ctx
.
builder
.
gep
(
struct_ptr
,
[
ctx
.
zero
,
field_idx_cons
])
generate_assign
(
field_ptr
,
expression
(
field_expr
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment