summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-10-28 20:56:56 +0100
committerMatthew Pickering <matthewtpickering@gmail.com>2021-10-28 20:59:12 +0100
commit9ef052e29e457709ef422d302cd1894d96a34511 (patch)
tree0eef84dcdcafd14d737e89f2d3c7b1b6ff0f192d
parent638f65482ca5265c268aa97abfcc14cdc27e46ba (diff)
downloadhaskell-wip/mangler-confusion.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.hs4
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