Skip to content

Commit b67c5f6

Browse files
committed
fix crash
1 parent d5c0cf0 commit b67c5f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ir/state.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,8 +999,10 @@ void State::finishInitializer() {
999999

10001000
void State::saveReturnedInput() {
10011001
assert(isSource());
1002-
if (auto *ret = getFn().getReturnedInput())
1002+
if (auto *ret = getFn().getReturnedInput()) {
10031003
returned_input = (*this)[*ret];
1004+
resetUndefVars();
1005+
}
10041006
}
10051007

10061008
expr State::sinkDomain() const {

0 commit comments

Comments
 (0)