[clang] [Clang] Fix potential null pointer dereferences in Sema::AddInitializerToDecl (PR #94368)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 20 12:37:50 PDT 2024
smanna12 wrote:
>>That is interesting as it implies that the call to InitializationSequence::Perform() did indeed return a result that was valid but null. Would you be able to debug to find out where that null result is coming from? Perhaps here: clang/lib/Sema/SemaInit.cpp:
Thanks @tahonermann for reviews!. Yes, it is coming from InitializationSequence::Perform()
``
// No steps means no initialization.
7574 if (Steps.empty())
7575 return ExprResult((Expr *)nullptr);
``
https://github.com/llvm/llvm-project/pull/94368
More information about the cfe-commits
mailing list