Skip to content

Commit

Permalink
change exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
swissiety authored Aug 19, 2024
1 parent f373fd5 commit 446e75c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ else if (rhs instanceof Local && !rhs.equivTo(use)) {
if (use != m) {
Integer defCount = m.getDefs(stmtGraph.getStmts()).size();
if (defCount == 0) {
throw new RuntimeException("Variable " + m + " used without definition!");
throw new IllegalStateException("Local `" + m + "' is used without a definition!");
} else if (defCount == 1) {
newStmt = replaceUse(stmtGraph, newStmt, use, rhs);
continue;
Expand Down

0 comments on commit 446e75c

Please sign in to comment.