[PATCH] D36846: [polly] Define PointerLikeTypeTraits as struct in response to related llvm change

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 17 13:26:24 PDT 2017


mgrang created this revision.
Herald added a reviewer: bollu.

This patch is in response to https://reviews.llvm.org/D35043 which changed "class PointerLikeTypeTraits" to "struct PointerLikeTypeTraits". Without this patch, we get a warning due to mismatching definitions of PointerLikeTypeTraits.


https://reviews.llvm.org/D36846

Files:
  include/polly/CodeGen/IslExprBuilder.h


Index: include/polly/CodeGen/IslExprBuilder.h
===================================================================
--- include/polly/CodeGen/IslExprBuilder.h
+++ include/polly/CodeGen/IslExprBuilder.h
@@ -27,7 +27,7 @@
 
 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; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36846.111558.patch
Type: text/x-patch
Size: 481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170817/7fbf12ea/attachment.bin>


More information about the llvm-commits mailing list