[polly] r291960 - ScopInfo: use correct enum type in type definition
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 13:46:48 PST 2017
Author: grosser
Date: Fri Jan 13 15:46:48 2017
New Revision: 291960
URL: http://llvm.org/viewvc/llvm-project?rev=291960&view=rev
Log:
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.
Modified:
polly/trunk/include/polly/ScopInfo.h
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=291960&r1=291959&r2=291960&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Fri Jan 13 15:46:48 2017
@@ -1533,8 +1533,9 @@ private:
/// The affinator used to translate SCEVs to isl expressions.
SCEVAffinator Affinator;
- typedef std::map<std::pair<AssertingVH<const Value>, int>,
- std::unique_ptr<ScopArrayInfo>>
+ typedef std::map<
+ std::pair<AssertingVH<const Value>, enum ScopArrayInfo::MemoryKind>,
+ std::unique_ptr<ScopArrayInfo>>
ArrayInfoMapTy;
typedef StringMap<std::unique_ptr<ScopArrayInfo>> ArrayNameMapTy;
More information about the llvm-commits
mailing list