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
dbfcd1f2
Commit
dbfcd1f2
authored
Apr 06, 2015
by
Michael Arntzenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
against my better instincts, comment out an assert
parent
68af6070
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+2
-2
test/tests/return_selfreferential.py
test/tests/return_selfreferential.py
+1
-2
No files found.
src/codegen/irgen/irgenerator.cpp
View file @
dbfcd1f2
...
@@ -1832,8 +1832,8 @@ private:
...
@@ -1832,8 +1832,8 @@ private:
endBlock
(
DEAD
);
endBlock
(
DEAD
);
// This is tripping in test/tests/return_selfreferential.py
// This is tripping in test/tests/return_selfreferential.py
. kmod says it should be removed.
ASSERT
(
rtn
->
getVrefs
()
==
1
,
"%d"
,
rtn
->
getVrefs
());
//
ASSERT(rtn->getVrefs() == 1, "%d", rtn->getVrefs());
assert
(
rtn
->
getValue
());
assert
(
rtn
->
getValue
());
emitter
.
getBuilder
()
->
CreateRet
(
rtn
->
getValue
());
emitter
.
getBuilder
()
->
CreateRet
(
rtn
->
getValue
());
}
}
...
...
test/tests/return_selfreferential.py
View file @
dbfcd1f2
# fail-if: ('-n' in EXTRA_JIT_ARGS) or ('-O' in EXTRA_JIT_ARGS)
# used to trip an assert about vref counts in irgenerator.cpp: IrGeneratorImpl::doReturn()
# trips an assert about vref counts in irgenerator.cpp: IrGeneratorImpl::doReturn()
def
f1
():
def
f1
():
def
bar
(
x
):
def
bar
(
x
):
print
'bar(%s)'
%
x
print
'bar(%s)'
%
x
...
...
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