Use `this->` to access inherited member from dependent type (Fix GCC7 build,...
authorMehdi Amini <aminim@google.com>
Mon, 1 Apr 2019 18:28:27 +0000 (11:28 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 1 Apr 2019 18:29:18 +0000 (11:29 -0700)
--

PiperOrigin-RevId: 241364505

mlir/include/mlir/IR/Types.h

index f44f86e..6cf5fbb 100644 (file)
@@ -170,7 +170,7 @@ public:
     }
 
     /// Utility for easy access to the storage instance.
-    ImplType *getImpl() const { return static_cast<ImplType *>(type); }
+    ImplType *getImpl() const { return static_cast<ImplType *>(this->type); }
   };
 
   using ImplType = TypeStorage;