Remove the ability to stash arbitrary pointers into UndefinedVal (no longer needed).

llvm-svn: 160764
This commit is contained in:
Ted Kremenek 2012-07-25 22:09:19 +00:00
parent 2aa45cf43e
commit 80b4ac76c5
2 changed files with 0 additions and 10 deletions

View 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 {

View 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