[polly] r310667 - Fix two warnings in polly, -Wmismatched-tags and -Wreorder

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 14:46:22 PDT 2017


Author: rnk
Date: Thu Aug 10 14:46:22 2017
New Revision: 310667

URL: http://llvm.org/viewvc/llvm-project?rev=310667&view=rev
Log:
Fix two warnings in polly, -Wmismatched-tags and -Wreorder

Modified:
    polly/trunk/include/polly/CodeGen/IslExprBuilder.h
    polly/trunk/include/polly/ScopPass.h
    polly/trunk/lib/Transform/ForwardOpTree.cpp

Modified: polly/trunk/include/polly/CodeGen/IslExprBuilder.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/CodeGen/IslExprBuilder.h?rev=310667&r1=310666&r2=310667&view=diff
==============================================================================
--- polly/trunk/include/polly/CodeGen/IslExprBuilder.h (original)
+++ polly/trunk/include/polly/CodeGen/IslExprBuilder.h Thu Aug 10 14:46:22 2017
@@ -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; }

Modified: polly/trunk/include/polly/ScopPass.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopPass.h?rev=310667&r1=310666&r2=310667&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopPass.h (original)
+++ polly/trunk/include/polly/ScopPass.h Thu Aug 10 14:46:22 2017
@@ -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; }
 

Modified: polly/trunk/lib/Transform/ForwardOpTree.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ForwardOpTree.cpp?rev=310667&r1=310666&r2=310667&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ForwardOpTree.cpp (original)
+++ polly/trunk/lib/Transform/ForwardOpTree.cpp Thu Aug 10 14:46:22 2017
@@ -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());




More information about the llvm-commits mailing list