compiler: Eliminate accidental loop in GHC.SysTools.BaseDir
As noted in #20757, `GHC.SysTools.BaseDir.findToolDir` previously contained an loop, which would be triggered in the case that the search failed. Closes #20757.
Showing
- compiler/GHC/SysTools/BaseDir.hs 2 additions, 2 deletionscompiler/GHC/SysTools/BaseDir.hs
- testsuite/tests/ghc-api/T20757.hs 6 additions, 0 deletionstestsuite/tests/ghc-api/T20757.hs
- testsuite/tests/ghc-api/T20757.stderr 1 addition, 0 deletionstestsuite/tests/ghc-api/T20757.stderr
- testsuite/tests/ghc-api/all.T 5 additions, 2 deletionstestsuite/tests/ghc-api/all.T
Loading
Please register or sign in to comment