forked from OSchip/llvm-project
parent
4246ca4021
commit
62144477eb
|
@ -1286,8 +1286,6 @@ bool PointerExprEvaluator::VisitCastExpr(const CastExpr* E) {
|
|||
|
||||
// Now figure out the necessary offset to add to the baseLV to get from
|
||||
// the derived class to the base class.
|
||||
CharUnits Offset = CharUnits::Zero();
|
||||
|
||||
QualType Ty = E->getSubExpr()->getType();
|
||||
const CXXRecordDecl *DerivedDecl =
|
||||
Ty->getAs<PointerType>()->getPointeeType()->getAsCXXRecordDecl();
|
||||
|
|
|
@ -540,11 +540,9 @@ void ExprEngine::VisitUnaryOperator(const UnaryOperator* U,
|
|||
ExplodedNode *Pred,
|
||||
ExplodedNodeSet &Dst) {
|
||||
StmtNodeBuilder Bldr(Pred, Dst, *currentBuilderContext);
|
||||
bool IncDec = false;
|
||||
switch (U->getOpcode()) {
|
||||
default: {
|
||||
Bldr.takeNodes(Pred);
|
||||
IncDec = true;
|
||||
ExplodedNodeSet Tmp;
|
||||
VisitIncrementDecrementOperator(U, Pred, Tmp);
|
||||
Bldr.addNodes(Tmp);
|
||||
|
|
Loading…
Reference in New Issue