Skip to content

Commit

Permalink
ReducePointerLevel - Based on a fix from Vassil Vasiilev's branch
Browse files Browse the repository at this point in the history
Another patch provided by oriceemple@github. Thanks!
  • Loading branch information
chenyang78 committed Aug 25, 2016
1 parent 32b709e commit e376b02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang_delta/ReducePointerLevel.cpp
Expand Up @@ -198,7 +198,8 @@ bool PointerLevelCollectionVisitor::VisitBinaryOperator(BinaryOperator *BO)
dyn_cast<UnaryOperator>(Rhs) ||
dyn_cast<ArraySubscriptExpr>(Rhs) ||
dyn_cast<MemberExpr>(Rhs) ||
dyn_cast<IntegerLiteral>(Rhs))
dyn_cast<IntegerLiteral>(Rhs) ||
dyn_cast<CXXNewExpr>(Rhs))
return true;

const DeclaratorDecl *DD = ConsumerInstance->getRefDecl(Lhs);
Expand Down

0 comments on commit e376b02

Please sign in to comment.