diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-28 20:56:56 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-28 20:59:12 +0100 |
commit | 9ef052e29e457709ef422d302cd1894d96a34511 (patch) | |
tree | 0eef84dcdcafd14d737e89f2d3c7b1b6ff0f192d | |
parent | 638f65482ca5265c268aa97abfcc14cdc27e46ba (diff) | |
download | haskell-9ef052e29e457709ef422d302cd1894d96a34511.tar.gz |
Fix boolean confusion with Opt_NoLlvmMangler flagwip/mangler-confusion
I accidently got the two branches of the if expression the wrong way
around when refactoring.
Fixes #20567
-rw-r--r-- | compiler/GHC/Driver/Pipeline.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Pipeline.hs b/compiler/GHC/Driver/Pipeline.hs index 55b6a28970..b268b42240 100644 --- a/compiler/GHC/Driver/Pipeline.hs +++ b/compiler/GHC/Driver/Pipeline.hs @@ -796,8 +796,8 @@ llvmManglePipeline :: P m => PipeEnv -> HscEnv -> Maybe ModLocation -> FilePath llvmManglePipeline pipe_env hsc_env location llc_fn = do mangled_fn <- if gopt Opt_NoLlvmMangler (hsc_dflags hsc_env) - then use (T_LlvmMangle pipe_env hsc_env llc_fn) - else return llc_fn + then return llc_fn + else use (T_LlvmMangle pipe_env hsc_env llc_fn) asPipeline False pipe_env hsc_env location mangled_fn cmmCppPipeline :: P m => PipeEnv -> HscEnv -> FilePath -> m FilePath |