From 4e8d1475bdb6fdecd938678e0e0a8e0ab543ffc1 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Fri, 13 Jan 2017 21:46:48 +0000 Subject: [PATCH] ScopInfo: use correct enum type in type definition Instead of a plain 'int' we use the correct enum type. This does not give us type safety yet, but at least makes the code more correct in terms of typing. To avoid such mismatches it might sense to switch these enums to C++11 typed enums. llvm-svn: 291960 --- polly/include/polly/ScopInfo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h index 4f5116839865..9adb929684cc 100644 --- a/polly/include/polly/ScopInfo.h +++ b/polly/include/polly/ScopInfo.h @@ -1533,8 +1533,9 @@ private: /// The affinator used to translate SCEVs to isl expressions. SCEVAffinator Affinator; - typedef std::map, int>, - std::unique_ptr> + typedef std::map< + std::pair, enum ScopArrayInfo::MemoryKind>, + std::unique_ptr> ArrayInfoMapTy; typedef StringMap> ArrayNameMapTy;