Skip to content

Commit

Permalink
[GR-54446] LibTruffleAttachResource should not use CompilerDirectives…
Browse files Browse the repository at this point in the history
….shouldNotReachHere.

PullRequest: graal/17890
  • Loading branch information
tzezula committed Jun 4, 2024
2 parents 3bdd577 + 2e02c8c commit 6335fa6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 6335fa6

Please sign in to comment.