This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix an assertion failure in misc-redundant-expression.
ClosedPublic

Authored by hokein on Jun 6 2019, 4:25 AM.

Details

Summary

The assertion "isIntegerConstantExpr" is triggered in the
isIntegerConstantExpr(), we should not call it if the expression is value
dependent.

Event Timeline

hokein created this revision.Jun 6 2019, 4:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2019, 4:25 AM
Herald added a subscriber: xazax.hun. · View Herald Transcript
gribozavr accepted this revision.Jun 6 2019, 5:00 AM
This revision is now accepted and ready to land.Jun 6 2019, 5:00 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2019, 5:55 AM