mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-02-09 18:31:23 +00:00
Working on static initialization rewrite _init(). #257
This commit is contained in:
parent
a989e63f5b
commit
804d39cf0a
@ -96,7 +96,8 @@ public class PassNBlockSequencePlanner extends Pass2SsaOptimization {
|
|||||||
Scope blockScope = getScope().getSymbol(blockRef).getScope();
|
Scope blockScope = getScope().getSymbol(blockRef).getScope();
|
||||||
for(ScopeTodo todoScope : todoScopes) {
|
for(ScopeTodo todoScope : todoScopes) {
|
||||||
if(todoScope.scope.equals(blockScope)) {
|
if(todoScope.scope.equals(blockScope)) {
|
||||||
todoScope.addTodo(block);
|
// TODO: Fix procedure sequence by using todoScope.addTodo(block);
|
||||||
|
todoScope.pushTodo(block);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1184,7 +1184,7 @@ public class TestPrograms {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEuclid2() throws IOException, URISyntaxException {
|
public void testEuclid3() throws IOException, URISyntaxException {
|
||||||
compileAndCompare("euclid-3.c");
|
compileAndCompare("euclid-3.c");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user