]> granicus.if.org Git - clang/commitdiff
Remove the ability to stash arbitrary pointers into UndefinedVal (no longer needed).
authorTed Kremenek <kremenek@apple.com>
Wed, 25 Jul 2012 22:09:19 +0000 (22:09 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 25 Jul 2012 22:09:19 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160764 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/StaticAnalyzer/Core/PathSensitive/SVals.h
lib/StaticAnalyzer/Core/Environment.cpp

index e495d15d3528fad974d22c093ec254d2fab4d284..e462657728006292b140bba402814a43339287df 100644 (file)
@@ -163,13 +163,10 @@ public:
 class UndefinedVal : public SVal {
 public:
   UndefinedVal() : SVal(UndefinedKind) {}
-  UndefinedVal(const void *D) : SVal(UndefinedKind, D) {}
 
   static inline bool classof(const SVal* V) {
     return V->getBaseKind() == UndefinedKind;
   }
-
-  const void *getData() const { return Data; }
 };
 
 class DefinedOrUnknownSVal : public SVal {
index 540eb88747fe8babee9ad7bba66a6d0b55fecdc9..29030914e7e7113822fd4c93d6414b956a536650 100644 (file)
@@ -230,13 +230,6 @@ EnvironmentManager::removeDeadBindings(Environment Env,
       RSScaner.scan(X);
       continue;
     }
-
-    // Otherwise the expression is dead with a couple exceptions.
-    // Do not misclean LogicalExpr or ConditionalOperator.  It is dead at the
-    // beginning of itself, but we need its UndefinedVal to determine its
-    // SVal.
-    if (X.isUndef() && cast<UndefinedVal>(X).getData())
-      EBMapRef = EBMapRef.add(BlkExpr, X);
   }
   
   // Go through he deferred locations and add them to the new environment if