Skip to content

Commit b8e4d4e

Browse files
Meinersburtstellar
authored andcommitted
[PollyACC] Fix implicit function definitions. NFC.
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 (cherry picked from commit 90e5ce0)
1 parent 6fe7c37 commit b8e4d4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

polly/lib/External/ppcg/print.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <isl/aff.h>
1111
#include <isl/ast_build.h>
12+
#include <isl/id.h>
1213

1314
#include "print.h"
1415
#include "util.h"

0 commit comments

Comments
 (0)