]> granicus.if.org Git - clang/commitdiff
Added FIXME for properly handling local arrays using symbolic LValues.
authorTed Kremenek <kremenek@apple.com>
Tue, 19 Feb 2008 00:29:51 +0000 (00:29 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 19 Feb 2008 00:29:51 +0000 (00:29 +0000)
For now we just treat their values as "Unknown."

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47294 91177308-0d34-0410-b5e6-96231b3b80d8

Analysis/GRExprEngine.cpp

index a004dc49080d5f9ade38f1f5ee051083a965b40d..09ffcd47a5d8322b40e89121f602d6048c69c3c9 100644 (file)
@@ -435,6 +435,11 @@ void GRExprEngine::VisitDeclStmt(DeclStmt* DS, GRExprEngine::NodeTy* Pred,
   
   for (const ScopedDecl* D = DS->getDecl(); D; D = D->getNextDeclarator())
     if (const VarDecl* VD = dyn_cast<VarDecl>(D)) {
+      
+      // FIXME: Add support for local arrays.
+      if (VD->getType()->isArrayType())
+        continue;
+      
       const Expr* E = VD->getInit();      
       St = SetValue(St, lval::DeclVal(VD),
                     E ? GetValue(St, E) : UninitializedVal());