r293604 - In VirtualCallChecker, handle indirect calls

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 24 11:02:40 PST 2017


On Mon, Jan 30, 2017 at 9:23 PM, Sam McCall via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: sammccall
> Date: Mon Jan 30 23:23:20 2017
> New Revision: 293604
>
> URL: http://llvm.org/viewvc/llvm-project?rev=293604&view=rev
> Log:
> In VirtualCallChecker, handle indirect calls
>
> Summary:
> In VirtualCallChecker, handle indirect calls.
>
> getDirectCallee() can be nullptr, and dyn_cast(nullptr) is UB
>
> Reviewers: bkramer
>
> Subscribers: cfe-commits
>
> Differential Revision: https://reviews.llvm.org/D29303
>
> Modified:
>     cfe/trunk/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
>     cfe/trunk/test/Analysis/virtualcall.cpp

Merged to 4.0 in r296154 as suggested in the code review email thread.


More information about the cfe-commits mailing list