diff options
author | Tobias Grosser <tobias@grosser.es> | 2016-07-15 11:42:53 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2016-07-15 11:42:53 +0000 |
commit | cfa0361d352edd37ff6d1817efd2546d2c6a63a4 (patch) | |
tree | 86c2518b19c2eecc1d0b1b8b3fbb20f953769817 | |
parent | cf9c31550c61b04985e98941e499cfacc0b3e9bf (diff) | |
download | bcm5719-llvm-cfa0361d352edd37ff6d1817efd2546d2c6a63a4.tar.gz bcm5719-llvm-cfa0361d352edd37ff6d1817efd2546d2c6a63a4.zip |
GPGPU: Do not check for hidden declarations
We do not have them in Polly and the code to check for them is directly
referring to pet data structures which we do not have available.
This commit avoids undefined behavior. As such issues are difficult to
reproduce, this commit comes without a test case.
llvm-svn: 275553
-rw-r--r-- | polly/lib/External/ppcg/ppcg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/polly/lib/External/ppcg/ppcg.c b/polly/lib/External/ppcg/ppcg.c index 92665001af6..0fbf3cc0386 100644 --- a/polly/lib/External/ppcg/ppcg.c +++ b/polly/lib/External/ppcg/ppcg.c @@ -99,6 +99,8 @@ int ppcg_scop_any_hidden_declarations(struct ppcg_scop *scop) if (!scop) return 0; + // This is a pet feature not available in Polly. + return 0; for (i = 0; i < scop->pet->n_array; ++i) if (scop->pet->arrays[i]->declared && !scop->pet->arrays[i]->exposed) |