@@ -358,16 +358,14 @@ static void checkDataLayoutConsistency(const TargetInfo &Target,
358
358
Target.BoolAlign );
359
359
Check (" short" , llvm::Type::getIntNTy (Context, Target.ShortWidth ),
360
360
Target.ShortAlign );
361
- // FIXME: M68k specifies incorrect wrong int and long alignments in Clang
362
- // and incorrect long long alignment in both LLVM and Clang.
363
- if (Triple.getArch () != llvm::Triple::m68k) {
364
- Check (" int" , llvm::Type::getIntNTy (Context, Target.IntWidth ),
365
- Target.IntAlign );
366
- Check (" long" , llvm::Type::getIntNTy (Context, Target.LongWidth ),
367
- Target.LongAlign );
361
+ Check (" int" , llvm::Type::getIntNTy (Context, Target.IntWidth ),
362
+ Target.IntAlign );
363
+ Check (" long" , llvm::Type::getIntNTy (Context, Target.LongWidth ),
364
+ Target.LongAlign );
365
+ // FIXME: M68k specifies incorrect long long alignment in both LLVM and Clang.
366
+ if (Triple.getArch () != llvm::Triple::m68k)
368
367
Check (" long long" , llvm::Type::getIntNTy (Context, Target.LongLongWidth ),
369
368
Target.LongLongAlign );
370
- }
371
369
// FIXME: There are int128 alignment mismatches on multiple targets.
372
370
if (Target.hasInt128Type () && !Target.getTargetOpts ().ForceEnableInt128 &&
373
371
!Triple.isAMDGPU () && !Triple.isSPIRV () &&
@@ -396,9 +394,7 @@ static void checkDataLayoutConsistency(const TargetInfo &Target,
396
394
if (Target.hasIbm128Type ())
397
395
Check (" __ibm128" , llvm::Type::getPPC_FP128Ty (Context), Target.Ibm128Align );
398
396
399
- // FIXME: Clang specifies incorrect pointer alignment for m68k.
400
- if (Triple.getArch () != llvm::Triple::m68k)
401
- Check (" void*" , llvm::PointerType::getUnqual (Context), Target.PointerAlign );
397
+ Check (" void*" , llvm::PointerType::getUnqual (Context), Target.PointerAlign );
402
398
#endif
403
399
}
404
400
0 commit comments