[clang] [clang] Implement -fstrict-bool (PR #160790)

via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 9 09:55:49 PDT 2026


=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>,
=?utf-8?q?Félix?= Cloutier <fcloutier at apple.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/160790 at github.com>


apple-fcloutier wrote:

@AaronBallman, I rebased on top of main. As is still the case from earlier this year, this leaves off changing the -O0 codegen from `-fno-strict-bool=truncate` to `-fno-strict-bool=nonzero` as it has a large effect on unit tests and it's secondary. I still have another PR queued up to attempt it, so that if something goes wrong we can pull that out specifically instead of -fno-strict-bool entirely. In my opinion, we are ready to merge, but I don't have commit access to llvm-project. If you agree, would it be OK to merge this PR?

https://github.com/llvm/llvm-project/pull/160790


More information about the cfe-commits mailing list