Browse Source

[analyzer] Call proper callback for const regions escaped other then on call.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179846 91177308-0d34-0410-b5e6-96231b3b80d8
Anton Yartsev 12 years ago
parent
commit
044fe23e79
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/StaticAnalyzer/Core/ExprEngine.cpp

+ 2 - 1
lib/StaticAnalyzer/Core/ExprEngine.cpp

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