]> granicus.if.org Git - clang/commitdiff
Cleanup code with utility method.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 24 Nov 2008 07:02:06 +0000 (07:02 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 24 Nov 2008 07:02:06 +0000 (07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59951 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index 084796cd994d432aa5baa6f235c7da9a14730c82..cb1aceaface29a2ce31c60789fb6d5f392eb9631 100644 (file)
@@ -1074,8 +1074,8 @@ const GRState* GRExprEngine::EvalLocation(Stmt* Ex, NodeTy* Pred,
       // Get the index of the accessed element.
       SVal Idx = ER->getIndex();
       // Get the extent of the array.
-      SVal NumElements = StateMgr.getStoreManager().getSizeInElements(StNotNull,
-                                                       ER->getSuperRegion());
+      SVal NumElements = getStoreManager().getSizeInElements(StNotNull,
+                                                          ER->getSuperRegion());
 
       bool isFeasibleInBound = false;
       const GRState* StInBound = AssumeInBound(StNotNull, Idx, NumElements,