Commit Graph

2 Commits

Author SHA1 Message Date
Augusto Noronha 14bc0a9317 [NFC][Runtime] Remove references to RemoteInspection from Runtime
In an effort to disentangle the three sets of llvm headers the targets
in stlib uses (real llvm headers, RuntimeHeaders/llvm,
stdlib/include/llvm), this patch completely removes the includes from
the runtime to RemoteInspection.

This is the first patch to eventually completely remove
RuntimeHeaders/llvm headers.
2026-02-19 20:43:15 -08:00
Saleem Abdulrasool 0174528f81 stdlib: fix the problem swept under the rug in 58a97f1603
The `-Winvalid-offsetof` warning is valid in this case. `offsetof` is
being applied to types with a non-standard layout. The layout of this
type is undefined by the specification. There is no guarantee that the
type layout is uniform across all ABIs. It is not possible to portably
compute the offset statically, especially efficiently.

Sink this check into a unit test to avoid performing this test at
runtime. In order to do this in the standard library, we would need to
do this check through a global constructor.
2025-02-03 09:25:06 -08:00