diff options
author | Zubin Duggal <zubin.duggal@gmail.com> | 2022-03-11 17:17:44 +0530 |
---|---|---|
committer | Zubin Duggal <zubin.duggal@gmail.com> | 2022-03-15 19:46:55 +0530 |
commit | bd1e9d9da1e922234b45981ab7449c9e361cad4c (patch) | |
tree | 8f79f93c843259c04276b68b77925685480a7479 | |
parent | a60ddffd75b9ff07b948ea8cdc71f677a4f8d167 (diff) | |
download | haskell-wip/20958.tar.gz |
Improve error message when warning about unsupported LLVM version (#20958)wip/20958
Change the wording to make it clear that the upper bound is non-inclusive.
-rw-r--r-- | compiler/GHC/CmmToLlvm.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/CmmToLlvm.hs b/compiler/GHC/CmmToLlvm.hs index 8de0e431ab..1833ddb74f 100644 --- a/compiler/GHC/CmmToLlvm.hs +++ b/compiler/GHC/CmmToLlvm.hs @@ -65,7 +65,7 @@ llvmCodeGen logger cfg h cmm_stream when (not (llvmVersionSupported ver) && doWarn) $ putMsg logger $ "You are using an unsupported version of LLVM!" $$ "Currently only" <+> text (llvmVersionStr supportedLlvmVersionLowerBound) <+> - "to" <+> text (llvmVersionStr supportedLlvmVersionUpperBound) <+> "is supported." <+> + "up to" <+> text (llvmVersionStr supportedLlvmVersionUpperBound) <+> "(non inclusive) is supported." <+> "System LLVM version: " <> text (llvmVersionStr ver) $$ "We will try though..." let isS390X = platformArch (llvmCgPlatform cfg) == ArchS390X |