[polly] r336251 - [Polly-ACC] Add isl_space.h to gpu_tree.c

Siddharth Bhat via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 4 02:40:55 PDT 2018


Author: bollu
Date: Wed Jul  4 02:40:55 2018
New Revision: 336251

URL: http://llvm.org/viewvc/llvm-project?rev=336251&view=rev
Log:
[Polly-ACC] Add isl_space.h to gpu_tree.c

Summary:
This patch adds <isl_space.h> to gpu_tree.c. This prevents a segfault
when allocating a new isl_space in the function create_sync_domain(), as
the compiler now knows that the return type is a pointer instead of
assuming the function returns an int.

This has been updated in upstream PPCG, so we should bump up our PPCG
version.

Initially discovered by Philip Pfaffe in Polly.

Reviewers: grosser, bollu, philip.pfaffe

Reviewed By: bollu

Subscribers: nemanjai, kbarton, llvm-commits

Differential Revision: https://reviews.llvm.org/D48883

Contributed-by: Alain Denzler <alaindenzler at gmail.com>

Modified:
    polly/trunk/lib/External/ppcg/gpu_tree.c

Modified: polly/trunk/lib/External/ppcg/gpu_tree.c
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/ppcg/gpu_tree.c?rev=336251&r1=336250&r2=336251&view=diff
==============================================================================
--- polly/trunk/lib/External/ppcg/gpu_tree.c (original)
+++ polly/trunk/lib/External/ppcg/gpu_tree.c Wed Jul  4 02:40:55 2018
@@ -11,6 +11,7 @@
 
 #include <isl/set.h>
 #include <isl/union_set.h>
+#include <isl/space.h>
 
 #include "gpu_tree.h"
 




More information about the llvm-commits mailing list