xazax.hun added a comment. We encountered the same problem but did not have time yet to submit the patch. We have literally the same fix internally, so it looks good to me. One minor style nit inline.
Could you add your repro as a regression test? You can also extend existing CTU tests just make sure to trigger the crash before the patch. Thank you for the submission and the minimal reproducer. ================ Comment at: lib/StaticAnalyzer/Core/CallEvent.cpp:390 const FunctionDecl *FD = getDecl(); + if (!FD) { + return {}; ---------------- We usually do not write the braces for single statements. Repository: rC Clang https://reviews.llvm.org/D45564 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits