summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-10-28 20:56:56 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-05 20:26:07 -0400
commit4896a6a6d28821ff1b1da3f2cc542e696d2b31b4 (patch)
tree86bae98195bb6f1c5949f25e25369341148398a1
parent3645abac01b634b61b2ea2508ba67e88ef9ee219 (diff)
downloadhaskell-4896a6a6d28821ff1b1da3f2cc542e696d2b31b4.tar.gz
Fix boolean confusion with Opt_NoLlvmMangler flag
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 53bf0333fb..c758202268 100644
--- a/compiler/GHC/Driver/Pipeline.hs
+++ b/compiler/GHC/Driver/Pipeline.hs
@@ -795,8 +795,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