[PollyACC] Fix implicit function definitions. NFC.
authorMichael Kruse <llvm-project@meinersbur.de>
Wed, 21 Apr 2021 05:09:53 +0000 (00:09 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Wed, 21 Apr 2021 06:08:00 +0000 (01:08 -0500)
The isl_id_* have been in used without including the correspodning
isl/id.h header. According to rules in C, a function is defined
implicitly when first used with an assumed int return type (32 bits on
64 bit systems). But the implementation returns a pointer (64 bits on 64
bit systems). Is usually has no consequence because the return value is
stored in a registers that is 64 bits (RAX) and the optimizer does not
truncate its value before using it again as a pointer value. However,
LTO optimizers will be rightfull;y confused.

Fix by including <isl/id.h>

This fixes llvm.org/PR50021

polly/lib/External/ppcg/print.c

index 79aaf2b..dd839e4 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <isl/aff.h>
 #include <isl/ast_build.h>
+#include <isl/id.h>
 
 #include "print.h"
 #include "util.h"