[clang] [Clang][Sema] Fix NULL dereferences for invalid references (PR #77703)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 29 06:17:17 PST 2024
erichkeane wrote:
Yeah, this doesn't seem right to me. Info is a reference, and thus cannot be null by language rule. A sufficiently smart compiler will remove your check. If we're SOMEHOW (though I don't see how?) setting it to nullptr, we need to fix that as that is not intended, nor particularly easy from what I can tell.
https://github.com/llvm/llvm-project/pull/77703
More information about the cfe-commits
mailing list