From 2e02c8ce27edbd57a7323d4f07add5a4e4ffa184 Mon Sep 17 00:00:00 2001 From: Tomas Zezula Date: Fri, 31 May 2024 14:59:12 +0200 Subject: [PATCH] [GR-54446] LibTruffleAttachResource should not use CompilerDirectives.shouldNotReachHere. --- .../com/oracle/truffle/runtime/LibTruffleAttachResource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java index 6d471d8f8972..95c62595f357 100644 --- a/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java +++ b/truffle/src/com.oracle.truffle.runtime/src/com/oracle/truffle/runtime/LibTruffleAttachResource.java @@ -40,7 +40,6 @@ */ package com.oracle.truffle.runtime; -import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.InternalResource; import java.io.IOException; @@ -70,7 +69,7 @@ public String versionHash(Env env) { Path base = basePath(env); return env.readResourceLines(base.resolve("sha256")).get(0); } catch (IOException ioe) { - throw CompilerDirectives.shouldNotReachHere(ioe); + throw new InternalError(ioe); } }