From f41f274bf84712ef7057e532109bd0aa43e2c532 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Wed, 10 May 2017 19:58:52 +0000 Subject: [PATCH] [DeLICM] Avoid compiler warning. NFC. gcc 5.4 warns about using a C-style case to case away a const. Use case a const_cast instead. llvm-svn: 302715 --- polly/lib/Transform/DeLICM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/lib/Transform/DeLICM.cpp b/polly/lib/Transform/DeLICM.cpp index 56e74f0..72abb08 100644 --- a/polly/lib/Transform/DeLICM.cpp +++ b/polly/lib/Transform/DeLICM.cpp @@ -1258,7 +1258,7 @@ protected: // TODO: Add only the induction variables referenced in SCEVAddRecExpr // expressions, not just all of them. auto ScevId = give(isl_id_alloc(UseDomainSpace.get_ctx().get(), nullptr, - (void *)ScevExpr)); + const_cast(ScevExpr))); auto ScevSpace = give(isl_space_drop_dims(UseDomainSpace.copy(), isl_dim_set, 0, 0)); ScevSpace = give( -- 2.7.4