diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2021-10-28 20:56:56 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-11-05 20:26:07 -0400 |
commit | 4896a6a6d28821ff1b1da3f2cc542e696d2b31b4 (patch) | |
tree | 86bae98195bb6f1c5949f25e25369341148398a1 /compiler/GHC/Driver | |
parent | 3645abac01b634b61b2ea2508ba67e88ef9ee219 (diff) | |
download | haskell-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
Diffstat (limited to 'compiler/GHC/Driver')
-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 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 |