[flang-commits] [flang] [flang][runtime][CUDA] Fix build error (PR #94281)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Jun 3 14:37:42 PDT 2024


https://github.com/klausler created https://github.com/llvm/llvm-project/pull/94281

I broke the build, and now I'm fixing it.

>From 1e2285932fdf5af2de232e250cc1d3ee7142b81a Mon Sep 17 00:00:00 2001
From: Peter Klausler <pklausler at nvidia.com>
Date: Mon, 3 Jun 2024 14:36:45 -0700
Subject: [PATCH] [flang][runtime][CUDA] Fix build error

I broke the build, and now I'm fixing it.
---
 flang/runtime/pseudo-unit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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<bool>,
     IoErrorHandler &handler) {
   if (direction != Direction::Output) {
-    terminator.Crash("ExternalFileUnit only supports output IO");
+    handler.Crash("ExternalFileUnit only supports output IO");
   }
   return New<ExternalFileUnit>{handler}(unit).release();
 }



More information about the flang-commits mailing list