[PATCH] D139148: Fix nullptr dereference found by Coverity static analysis tool
Tom Honermann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 10 07:12:45 PST 2022
tahonermann added inline comments.
================
Comment at: clang/lib/Sema/SemaInit.cpp:5966
(Context.hasSameUnqualifiedType(SourceType, DestType) ||
- S.IsDerivedFrom(Initializer->getBeginLoc(), SourceType, DestType))))
+ (Initilializer &&
+ S.IsDerivedFrom(Initializer->getBeginLoc(), SourceType, DestType)))))
----------------
Typo.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139148/new/
https://reviews.llvm.org/D139148
More information about the cfe-commits
mailing list