[all-commits] [llvm/llvm-project] 5fa4eb: [Clang] Verify data layout consistency (#144720)

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jul 1 01:44:02 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fa4eb1dfd8f463374e37799702411cca154d2e4
      https://github.com/llvm/llvm-project/commit/5fa4eb1dfd8f463374e37799702411cca154d2e4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp

  Log Message:
  -----------
  [Clang] Verify data layout consistency (#144720)

Verify that the alignments specified by clang TargetInfo match the
alignments specified by LLVM data layout, which will hopefully prevent
accidental mismatches in the future.

This currently contains opt-outs for a number of of existing mismatches.

I'm also skipping the verification if options like `-malign-double` are
used, or a language that mandates sizes/alignments that differ from C.

The verification happens in CodeGen, as we can't have an IR dependency
in Basic.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list