forked from OSchip/llvm-project
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:
parent
97d22187d0
commit
4e8d1475bd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue