[polly] r292067 - Fix compilation on MSVC, NFC
Hongbin Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 15 08:47:26 PST 2017
Author: ether
Date: Sun Jan 15 10:47:26 2017
New Revision: 292067
URL: http://llvm.org/viewvc/llvm-project?rev=292067&view=rev
Log:
Fix compilation on MSVC, NFC
Differential Revision: https://reviews.llvm.org/D28739
Modified:
polly/trunk/include/polly/ScopInfo.h
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=292067&r1=292066&r2=292067&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sun Jan 15 10:47:26 2017
@@ -233,7 +233,7 @@ public:
/// @param S The scop this array object belongs to.
/// @param BaseName The optional name of this memory reference.
ScopArrayInfo(Value *BasePtr, Type *ElementType, isl_ctx *IslCtx,
- ArrayRef<const SCEV *> DimensionSizes, enum MemoryKind Kind,
+ ArrayRef<const SCEV *> DimensionSizes, MemoryKind Kind,
const DataLayout &DL, Scop *S, const char *BaseName = nullptr);
/// Update the element type of the ScopArrayInfo object.
@@ -320,7 +320,7 @@ public:
__isl_give isl_id *getBasePtrId() const;
/// Return what kind of memory this represents.
- enum MemoryKind getKind() const { return Kind; }
+ MemoryKind getKind() const { return Kind; }
/// Is this array info modeling an llvm::Value?
bool isValueKind() const { return Kind == MemoryKind::Value; }
@@ -399,7 +399,7 @@ private:
/// The type of this scop array info object.
///
/// We distinguish between SCALAR, PHI and ARRAY objects.
- enum MemoryKind Kind;
+ MemoryKind Kind;
/// The data layout of the module.
const DataLayout &DL;
@@ -1536,7 +1536,7 @@ private:
/// The affinator used to translate SCEVs to isl expressions.
SCEVAffinator Affinator;
- typedef std::map<std::pair<AssertingVH<const Value>, enum MemoryKind>,
+ typedef std::map<std::pair<AssertingVH<const Value>, MemoryKind>,
std::unique_ptr<ScopArrayInfo>>
ArrayInfoMapTy;
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=292067&r1=292066&r2=292067&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sun Jan 15 10:47:26 2017
@@ -186,7 +186,7 @@ static const ScopArrayInfo *identifyBase
}
ScopArrayInfo::ScopArrayInfo(Value *BasePtr, Type *ElementType, isl_ctx *Ctx,
- ArrayRef<const SCEV *> Sizes, enum MemoryKind Kind,
+ ArrayRef<const SCEV *> Sizes, MemoryKind Kind,
const DataLayout &DL, Scop *S,
const char *BaseName)
: BasePtr(BasePtr), ElementType(ElementType), Kind(Kind), DL(DL), S(*S) {
More information about the llvm-commits
mailing list