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
This commit is contained in:
Tobias Grosser 2017-01-13 21:46:48 +00:00
parent 97d22187d0
commit 4e8d1475bd
1 changed files with 3 additions and 2 deletions

View File

@ -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;