From 3284f1975c489548c701ae1c91f5382c75e87153 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 10 Mar 2015 22:35:43 +0000 Subject: [PATCH] Assert in isl expression builder if id can not be found [NFC] llvm-svn: 231865 --- polly/lib/CodeGen/IslExprBuilder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polly/lib/CodeGen/IslExprBuilder.cpp b/polly/lib/CodeGen/IslExprBuilder.cpp index c749b2d8de52..089cac03245f 100644 --- a/polly/lib/CodeGen/IslExprBuilder.cpp +++ b/polly/lib/CodeGen/IslExprBuilder.cpp @@ -587,6 +587,8 @@ Value *IslExprBuilder::createId(__isl_take isl_ast_expr *Expr) { V = IDToValue[Id]; + assert(V && "Unknown parameter id found"); + isl_id_free(Id); isl_ast_expr_free(Expr);