Files
clang-p2996/clang/lib/CodeGen/CodeGenModule.cpp
Nikita Popov 5fa4eb1dfd [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.
2025-07-01 10:43:40 +02:00

312 KiB