From: Michael Kruse Date: Wed, 10 May 2017 19:58:52 +0000 (+0000) Subject: [DeLICM] Avoid compiler warning. NFC. X-Git-Tag: llvmorg-5.0.0-rc1~5415 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f41f274bf84712ef7057e532109bd0aa43e2c532;p=platform%2Fupstream%2Fllvm.git [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 --- 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(