Skip to content

Commit d305fd0

Browse files
authored
[flang][AIX] filter out __builtin_c_devptr for generating packed type (#122812)
1 parent df40b05 commit d305fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Lower/ConvertType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ struct TypeBuilderImpl {
392392
// Always generate packed FIR struct type for bind(c) derived type for AIX
393393
if (targetTriple.getOS() == llvm::Triple::OSType::AIX &&
394394
tySpec.typeSymbol().attrs().test(Fortran::semantics::Attr::BIND_C) &&
395-
!IsIsoCType(&tySpec)) {
395+
!IsIsoCType(&tySpec) && !fir::isa_builtin_cdevptr_type(rec)) {
396396
rec.pack(true);
397397
}
398398

0 commit comments

Comments
 (0)