Simplify the function using IgnoreParenNoopCasts.
Fix PR45476
Differential D78098
[CGExprAgg] Fix infinite loop in `findPeephole` ekatz on Apr 14 2020, 4:32 AM. Authored by
Details Simplify the function using IgnoreParenNoopCasts. Fix PR45476
Diff Detail
Unit Tests Event Timeline
Comment Actions Oh, no, not quite. Please name the test case to something more specific; pr45476.cpp would be fine. |
I liked the structure of the old code better, in case we want to look through other kinds of expressions. Please just add op = castE->getSubExpr() before the continue.