Skip to content

Commit 53629e4

Browse files
Add check
1 parent dde79c2 commit 53629e4

File tree

1 file changed

+1
-0
lines changed
  • optvm/src/main/java/com/compilerprogramming/ezlang/compiler

1 file changed

+1
-0
lines changed

optvm/src/main/java/com/compilerprogramming/ezlang/compiler/EnterSSA.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class EnterSSA {
3535

3636
public EnterSSA(CompiledFunction bytecodeFunction, EnumSet<Options> options) {
3737
this.function = bytecodeFunction;
38+
if (function.isSSA) throw new CompilerException("Supplied function is already in SSA form");
3839
setupGlobals();
3940
computeDomTreeAndDominanceFrontiers();
4041
if (options.contains(Options.DUMP_PRE_SSA_DOMTREE)) {

0 commit comments

Comments
 (0)