forked from OSchip/llvm-project
Always blast through no-op casts when getting expr SVals.
llvm-svn: 122390
This commit is contained in:
parent
222374d886
commit
4dc4bf25d7
|
@ -63,12 +63,7 @@ SVal Environment::getSVal(const Stmt *E, SValBuilder& svalBuilder) const {
|
|||
if (CT->isVoidType())
|
||||
return UnknownVal();
|
||||
if (C->getCastKind() == CK_NoOp) {
|
||||
// If the no-op cast has value, use it. Should we always propagate
|
||||
// values through all levels of no-op casts?
|
||||
if (const SVal* X = ExprBindings.lookup(C))
|
||||
return *X;
|
||||
else
|
||||
E = C->getSubExpr();
|
||||
E = C->getSubExpr();
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue