From 4896a6a6d28821ff1b1da3f2cc542e696d2b31b4 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Thu, 28 Oct 2021 20:56:56 +0100 Subject: 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 --- compiler/GHC/Driver/Pipeline.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/GHC/Driver/Pipeline.hs') 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 -- cgit v1.2.1