forked from OSchip/llvm-project
Remove the ability to stash arbitrary pointers into UndefinedVal (no longer needed).
llvm-svn: 160764
This commit is contained in:
parent
2aa45cf43e
commit
80b4ac76c5
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue