]> granicus.if.org Git - clang/commit
In VirtualCallChecker, handle indirect calls
authorSam McCall <sam.mccall@gmail.com>
Tue, 31 Jan 2017 05:23:20 +0000 (05:23 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 31 Jan 2017 05:23:20 +0000 (05:23 +0000)
commit760abb81d09f254e45152609644192607c10107a
tree31d4e93715e7eb5e5a144a900a5f15801fd5ad07
parent4cedfcc1ecf8387082183508604b7f47c634f708
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293604 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
test/Analysis/virtualcall.cpp