[SCEV] Fix GCC -Wnon-virtual-dtor
authorFangrui Song <i@maskray.me>
Wed, 1 Sep 2021 08:12:32 +0000 (01:12 -0700)
committerFangrui Song <i@maskray.me>
Wed, 1 Sep 2021 08:12:32 +0000 (01:12 -0700)
commit4852c770fe8703145dd2a35395985646ce57a454
tree7327ce18868073992b65278e89d4b0f6351f14c3
parent85fd44d7fef628004c7efd066cc38edb309875b6
[SCEV] Fix GCC -Wnon-virtual-dtor

SCEVPredicate has a friend declaration. The friend can technically call the
protected destructor, so the warning is legitimate. Clang simply doesn't implement
the friend check.

Make the dtor virtual to fix the issue.
llvm/include/llvm/Analysis/ScalarEvolution.h