]> granicus.if.org Git - clang/commitdiff
BasicStoreManager: Use SymbolManager::canSymbolicate() to determine if a variable...
authorTed Kremenek <kremenek@apple.com>
Fri, 3 Jul 2009 00:36:16 +0000 (00:36 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 3 Jul 2009 00:36:16 +0000 (00:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74750 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicStore.cpp

index ccaffc3627d3057cb912c2f1051291cc8a821679..19d641ee9753a4ab1520b0888be46a3bb082d571 100644 (file)
@@ -584,7 +584,7 @@ Store BasicStoreManager::BindDeclInternal(Store store, const VarDecl* VD,
   } else {
     // Process local scalar variables.
     QualType T = VD->getType();
-    if (Loc::IsLocType(T) || T->isIntegerType()) {
+    if (ValMgr.getSymbolManager().canSymbolicate(T)) {
       SVal V = InitVal ? *InitVal : UndefinedVal();
       store = BindInternal(store, getLoc(VD), V);
     }