[CGExprAgg] Fix infinite loop in `findPeephole`
authorEhud Katz <ehudkatz@gmail.com>
Thu, 16 Apr 2020 10:26:23 +0000 (13:26 +0300)
committerEhud Katz <ehudkatz@gmail.com>
Thu, 16 Apr 2020 10:26:23 +0000 (13:26 +0300)
commit03a9526fe5adae909f1d5fd2736703e69fc46e09
tree4abcf383c0c2785f344cff40e938ce4609823302
parent921009e66798f8a40b59d4e7c63545adaead0f54
[CGExprAgg] Fix infinite loop in `findPeephole`

Simplify the function using IgnoreParenNoopCasts.

Fix PR45476

Differential Revision: https://reviews.llvm.org/D78098
clang/lib/CodeGen/CGExprAgg.cpp
clang/test/CodeGen/pr45476.cpp [new file with mode: 0644]