]> granicus.if.org Git - clang/commitdiff
[analyzer] Call proper callback for const regions escaped other then on call.
authorAnton Yartsev <anton.yartsev@gmail.com>
Fri, 19 Apr 2013 09:39:51 +0000 (09:39 +0000)
committerAnton Yartsev <anton.yartsev@gmail.com>
Fri, 19 Apr 2013 09:39:51 +0000 (09:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179846 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExprEngine.cpp

index 885a5adeec75ee78137b70e4b3061de93414bce1..92a3a952dffc023386ba2f2411cb262f4d604309 100644 (file)
@@ -1811,7 +1811,8 @@ ExprEngine::notifyCheckersOfPointerEscape(ProgramStateRef State,
     return getCheckerManager().runCheckersForPointerEscape(State,
                                                            *Invalidated,
                                                            0,
-                                                           PSK_EscapeOther);
+                                                           PSK_EscapeOther,
+                                                           IsConst);
 
   // Note: Due to current limitations of RegionStore, we only process the top
   // level const pointers correctly. The lower level const pointers are