Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
9f8ea55e
Commit
9f8ea55e
authored
Jul 09, 2015
by
Marius Wachtler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bjit: fix assert error when creating an empty set
parent
bb4092a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/codegen/baseline_jit.cpp
src/codegen/baseline_jit.cpp
+6
-1
No files found.
src/codegen/baseline_jit.cpp
View file @
9f8ea55e
...
...
@@ -203,7 +203,11 @@ RewriterVar* JitFragmentWriter::emitCreateList(const llvm::ArrayRef<RewriterVar*
}
RewriterVar
*
JitFragmentWriter
::
emitCreateSet
(
const
llvm
::
ArrayRef
<
RewriterVar
*>
values
)
{
return
call
(
false
,
(
void
*
)
createSetHelper
,
imm
(
values
.
size
()),
allocArgs
(
values
));
auto
num
=
values
.
size
();
if
(
num
==
0
)
return
call
(
false
,
(
void
*
)
createSet
);
else
return
call
(
false
,
(
void
*
)
createSetHelper
,
imm
(
num
),
allocArgs
(
values
));
}
RewriterVar
*
JitFragmentWriter
::
emitCreateSlice
(
RewriterVar
*
start
,
RewriterVar
*
stop
,
RewriterVar
*
step
)
{
...
...
@@ -532,6 +536,7 @@ bool JitFragmentWriter::finishAssembly(int continue_offset) {
RewriterVar
*
JitFragmentWriter
::
allocArgs
(
const
llvm
::
ArrayRef
<
RewriterVar
*>
args
)
{
auto
num
=
args
.
size
();
assert
(
num
);
RewriterVar
*
array
=
allocate
(
num
);
for
(
int
i
=
0
;
i
<
num
;
++
i
)
array
->
setAttr
(
sizeof
(
void
*
)
*
i
,
args
[
i
]);
...
...
Write
Preview
Markdown
is supported
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