Displaying 2 results from an estimated 2 matches for "llvm_no_debug_check".
Did you mean:
llvm_no_debug_checks
2020 Apr 10
2
[RFC] Usage of NDEBUG as a guard for non-assert debug code
...le is a loop only for
>the assert, eg.
>
> #ifndef NDEBUG
> for (auto &Val : Container)
> assert(Val && "all");
> #endif
>
>where the loop would loop over nothing with assertions disable. We
>cannot have a 'change all 'NDEBUG to LLVM_NO_DEBUG_CHECKS'. Even if we
>manage to leave all NDEBUG that are linked to some use of assert(), it
>doubles the number of configurations that might break in some
>configuration such as IndVarSimplify. I understand NDEBUG as `remove
>all the code only useful for developers`, independent of whethe...
2020 Apr 09
7
[RFC] Usage of NDEBUG as a guard for non-assert debug code
Hi all,
During discussions about assertions in the Flang project, we noticed that there are a lot of cases in LLVM that #ifndef NDEBUG is used as a guard for non-assert code that we want enabled in debug builds.
This works fine on its own, however it affects the behaviour of LLVM_ENABLE_ASSERTIONS; since NDEBUG controls whether assertions are enabled or not, a lot of debug code gets enabled in