[Polly] Remove checkIslAstExprInt and use RAII instead of manually freeing Expr....
authorMax Fan <root@max.fan>
Fri, 15 Oct 2021 13:45:28 +0000 (08:45 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Fri, 15 Oct 2021 14:17:00 +0000 (09:17 -0500)
commit5bf32a0e4841d56b481344fb4d074ac96a854261
tree051208ac2b470758e9d495e290bcca233ce7b9f1
parent1583c41d07a45a2daa1e9d8347dcea4329794657
[Polly] Remove checkIslAstExprInt and use RAII instead of manually freeing Expr. NFC.

Polly is trying to move towards using isl::ast_expr / isl-noexceptions.h
(which implements RAII) where possible instead of manually managing memory.
checkIslAstExprInt manually frees Expr, so it has been removed to be
more idiomatic and consistent.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D111769
polly/lib/CodeGen/IslNodeBuilder.cpp