Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
aa2b434a
Commit
aa2b434a
authored
Nov 01, 2014
by
Maxime Perrotin
Browse files
Fix in LLVM backend
parent
e0cc051b
Changes
1
Hide whitespace changes
Inline
Side-by-side
LlvmGenerator.py
View file @
aa2b434a
...
...
@@ -717,6 +717,8 @@ def _proc_call(proc_call, ctx):
arg_vals
.
append
(
reference
(
arg
,
ctx
))
else
:
arg_val
=
expression
(
arg
,
ctx
)
if
isinstance
(
arg_val
,
SDLStringLiteral
):
arg_val
=
sdl_stringliteral
(
arg_val
.
string
,
arg_val
.
typeof
,
ctx
)
# Pass by reference
if
arg_val
.
type
.
kind
!=
lc
.
TYPE_POINTER
:
arg_var
=
ctx
.
builder
.
alloca
(
arg_val
.
type
,
None
)
...
...
@@ -2017,6 +2019,8 @@ def sdl_assign(a_ptr, b_val, ctx):
sdl_call
(
'memcpy'
,
[
a_ptr
,
b_ptr
,
size
,
align
,
volatile
],
ctx
)
else
:
if
isinstance
(
b_val
,
SDLStringLiteral
):
b_val
=
sdl_stringliteral
(
b_val
.
string
,
b_val
.
typeof
,
ctx
)
ctx
.
builder
.
store
(
b_val
,
a_ptr
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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