diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-02-04 00:47:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-02-04 00:47:48 +0000 |
commit | 40c37e1a624c27f987458a3234f615d929e9d813 (patch) | |
tree | 328ac7dd44b457e58b48c7cafe688456fc13963e /lib/Checker/GRExprEngine.cpp | |
parent | 2663f527c2717295fbaed4715945b879ad68f4cf (diff) |
static analyzer: handle casts of a function to a function pointer with
a different return type. While we don't emit any errors (yet), at
least we avoid cases where we might crash because of an assertion
failure later on (when the return type differs from what is expected).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRExprEngine.cpp')
-rw-r--r-- | lib/Checker/GRExprEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Checker/GRExprEngine.cpp b/lib/Checker/GRExprEngine.cpp index 52e4fc12f8..1e16bde5f1 100644 --- a/lib/Checker/GRExprEngine.cpp +++ b/lib/Checker/GRExprEngine.cpp @@ -301,6 +301,7 @@ static void RegisterInternalChecks(GRExprEngine &Eng) { // their associated BugType will get registered with the BugReporter // automatically. Note that the check itself is owned by the GRExprEngine // object. + RegisterAdjustedReturnValueChecker(Eng); RegisterAttrNonNullChecker(Eng); RegisterCallAndMessageChecker(Eng); RegisterDereferenceChecker(Eng); |