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
2cbaccec
Commit
2cbaccec
authored
Aug 12, 2014
by
dbarbera
Browse files
Fixed ranges in substring values
parent
14eaa27f
Changes
1
Hide whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
2cbaccec
...
...
@@ -787,7 +787,9 @@ def _prim_substring_reference(prim, ctx):
else
:
arr_ptr
=
ctx
.
builder
.
gep
(
seqof_val
,
[
ctx
.
zero
,
ctx
.
one
])
arr_ptr
=
ctx
.
builder
.
gep
(
arr_ptr
,
[
low_val
])
arr_ptr_llty
=
arr_ptr
.
type
arr_ptr
=
ctx
.
builder
.
gep
(
arr_ptr
,
[
ctx
.
zero
,
low_val
])
arr_ptr
=
ctx
.
builder
.
bitcast
(
arr_ptr
,
arr_ptr_llty
)
return
SDLSubstringValue
(
arr_ptr
,
count_val
,
asn1ty
)
...
...
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