diff --git a/flang/runtime/pseudo-unit.cpp b/flang/runtime/pseudo-unit.cpp index 5a8696312d7ee..70e70eec6a77e 100644 --- a/flang/runtime/pseudo-unit.cpp +++ b/flang/runtime/pseudo-unit.cpp @@ -38,7 +38,7 @@ ExternalFileUnit *ExternalFileUnit::LookUpOrCreateAnonymous(int unit, Direction direction, Fortran::common::optional, IoErrorHandler &handler) { if (direction != Direction::Output) { - terminator.Crash("ExternalFileUnit only supports output IO"); + handler.Crash("ExternalFileUnit only supports output IO"); } return New{handler}(unit).release(); }