Fix oversight while refactoring code in 207198873 (Fix ForStmt and StmtBlock

destructors).

getStatements().clear() should have been clear() in Statements.h.

PiperOrigin-RevId: 207270417
This commit is contained in:
Uday Bondhugula 2018-08-03 08:31:34 -07:00 committed by jpienaar
parent fcf15a680b
commit b4dea892f2
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ public:
// Explicitly erase statements instead of relying of 'StmtBlock' destructor
// since child statements need to be destroyed before the MLValue that this
// for stmt represents is destroyed.
getStatements().clear();
clear();
}
AffineConstantExpr *getLowerBound() const { return lowerBound; }