[all-commits] [llvm/llvm-project] a4ddeb: [clang] Don't omit null pointer checks with -fms-k...
eleviant via All-commits
all-commits at lists.llvm.org
Wed May 6 11:01:05 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4ddeba8daff36c8e6285fa3603185b4c9b41718
https://github.com/llvm/llvm-project/commit/a4ddeba8daff36c8e6285fa3603185b4c9b41718
Author: eleviant <eleviant at accesssoftek.com>
Date: 2026-05-06 (Wed, 06 May 2026)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Options/Options.td
A clang/test/CodeGen/MSKernel/null-deref.c
Log Message:
-----------
[clang] Don't omit null pointer checks with -fms-kernel (#193800)
In kernel space, a null (zero) address may be valid, so treating it as "always invalid" and bypassing null checks is not correct. With -fms-kernel, we override the default behavior and disable assumptions about null pointers. However, -fdelete-null-pointer-checks can still be used to re-enable these optimizations.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list