Fix two warnings in polly, -Wmismatched-tags and -Wreorder

llvm-svn: 310667
This commit is contained in:
Reid Kleckner 2017-08-10 21:46:22 +00:00
parent a24e4cda00
commit 8d719a27f5
3 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ struct isl_id;
namespace llvm {
// Provide PointerLikeTypeTraits for isl_id.
template <> class PointerLikeTypeTraits<isl_id *> {
template <> struct PointerLikeTypeTraits<isl_id *> {
public:
static inline const void *getAsVoidPointer(isl_id *P) { return (void *)P; }

View File

@ -182,7 +182,7 @@ class SPMUpdater {
public:
SPMUpdater(SmallPriorityWorklist<Region *, 4> &Worklist,
ScopAnalysisManager &SAM)
: Worklist(Worklist), SAM(SAM), InvalidateCurrentScop(false) {}
: InvalidateCurrentScop(false), Worklist(Worklist), SAM(SAM) {}
bool invalidateCurrentScop() const { return InvalidateCurrentScop; }

View File

@ -197,7 +197,7 @@ private:
// (i.e. not: { Dom[0] -> A[0]; Dom[1] -> B[1] }).
// Look through all spaces until we find one that contains at least the
// wanted statement instance.s
MustKnown.foreach_map([&, this](isl::map Map) -> isl::stat {
MustKnown.foreach_map([&](isl::map Map) -> isl::stat {
// Get the array this is accessing.
isl::id ArrayId = Map.get_tuple_id(isl::dim::out);
ScopArrayInfo *SAI = static_cast<ScopArrayInfo *>(ArrayId.get_user());