From 5ff47ff5bb815e18e03fab42ffae7d735ea70976 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 7 Dec 2021 08:47:16 -0500 Subject: codeGen: Introduce flag to bounds-check array accesses Here we introduce code generator support for instrument array primops with bounds checking, enabled with the `-fcheck-prim-bounds` flag. Introduced to debug #20769. --- compiler/GHC/Driver/Flags.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/GHC/Driver/Flags.hs') diff --git a/compiler/GHC/Driver/Flags.hs b/compiler/GHC/Driver/Flags.hs index c66cb85bfe..d0d114dba8 100644 --- a/compiler/GHC/Driver/Flags.hs +++ b/compiler/GHC/Driver/Flags.hs @@ -149,6 +149,7 @@ data GeneralFlag | Opt_DoCmmLinting | Opt_DoAsmLinting | Opt_DoAnnotationLinting + | Opt_DoBoundsChecking | Opt_NoLlvmMangler -- hidden flag | Opt_FastLlvm -- hidden flag | Opt_NoTypeableBinds -- cgit v1.2.1