]> granicus.if.org Git - clang/commitdiff
Temporary solution to push analysis through to analyzing PCRE.
authorTed Kremenek <kremenek@apple.com>
Mon, 18 Feb 2008 21:19:49 +0000 (21:19 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 18 Feb 2008 21:19:49 +0000 (21:19 +0000)
We will implement symbol "unification" later.

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

Analysis/GRSimpleVals.cpp

index 558a87625efac498e1bee520be9b0d6f1a118683..58f0729a70182d11f1a0820c4db0328e527f394b 100644 (file)
@@ -31,7 +31,7 @@ namespace clang {
     CheckerState->setTransferFunctions(GRSV);
     
     // Execute the worklist algorithm.
-    Engine.ExecuteWorkList();
+    Engine.ExecuteWorkList(200);
     
     // Look for explicit-Null dereferences and warn about them.
     for (GRExprEngine::null_iterator I=CheckerState->null_begin(),
@@ -228,7 +228,9 @@ NonLValue GRSimpleVals::EvalEQ(ValueManager& ValMgr, LValue LHS, LValue RHS) {
           return nonlval::SymIntConstraintVal(C);
         }
         
-        assert (!isa<lval::SymbolVal>(RHS) && "FIXME: Implement unification.");
+        // FIXME: Implement unification
+        return cast<NonLValue>(UnknownVal());
+          //assert (!isa<lval::SymbolVal>(RHS) && "FIXME: Implement unification.");
         
         break;
       }