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
168527bd
Commit
168527bd
authored
Feb 22, 2015
by
Travis Hance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unittest build
parent
e693cca4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+0
-2
test/unittests/analysis.cpp
test/unittests/analysis.cpp
+1
-1
No files found.
src/codegen/irgen/irgenerator.cpp
View file @
168527bd
...
@@ -2082,12 +2082,10 @@ private:
...
@@ -2082,12 +2082,10 @@ private:
if
(
myblock
->
successors
.
size
())
{
if
(
myblock
->
successors
.
size
())
{
// TODO getTypeAtBlockEnd will automatically convert up to the concrete type, which we don't want
// TODO getTypeAtBlockEnd will automatically convert up to the concrete type, which we don't want
// here, but this is just for debugging so I guess let it happen for now:
// here, but this is just for debugging so I guess let it happen for now:
/*
ConcreteCompilerType
*
ending_type
=
types
->
getTypeAtBlockEnd
(
it
->
first
,
myblock
);
ConcreteCompilerType
*
ending_type
=
types
->
getTypeAtBlockEnd
(
it
->
first
,
myblock
);
ASSERT
(
it
->
second
->
canConvertTo
(
ending_type
),
"%s is supposed to be %s, but somehow is %s"
,
ASSERT
(
it
->
second
->
canConvertTo
(
ending_type
),
"%s is supposed to be %s, but somehow is %s"
,
it
->
first
.
c_str
(),
ending_type
->
debugName
().
c_str
(),
it
->
first
.
c_str
(),
ending_type
->
debugName
().
c_str
(),
it
->
second
->
getType
()
->
debugName
().
c_str
());
it
->
second
->
getType
()
->
debugName
().
c_str
());
*/
}
}
#endif
#endif
...
...
test/unittests/analysis.cpp
View file @
168527bd
...
@@ -23,7 +23,7 @@ protected:
...
@@ -23,7 +23,7 @@ protected:
TEST_F
(
AnalysisTest
,
augassign
)
{
TEST_F
(
AnalysisTest
,
augassign
)
{
const
std
::
string
fn
(
"test/unittests/analysis_listcomp.py"
);
const
std
::
string
fn
(
"test/unittests/analysis_listcomp.py"
);
AST_Module
*
module
=
caching_parse
(
fn
.
c_str
());
AST_Module
*
module
=
caching_parse
_file
(
fn
.
c_str
());
assert
(
module
);
assert
(
module
);
ScopingAnalysis
*
scoping
=
runScopingAnalysis
(
module
);
ScopingAnalysis
*
scoping
=
runScopingAnalysis
(
module
);
...
...
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