diff options
author | sethp <seth@codecopse.net> | 2024-03-17 09:35:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 17:35:13 +0100 |
commit | 192be3c9c13363847d176f2c4bba2bd4be5e822f (patch) | |
tree | b7fb762f3f140f664bf92cd581e76196032cee3a /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | d39ac3a8e010582c25e5d7e193ad3153402b1c4f (diff) | |
download | llvm-192be3c9c13363847d176f2c4bba2bd4be5e822f.zip llvm-192be3c9c13363847d176f2c4bba2bd4be5e822f.tar.gz llvm-192be3c9c13363847d176f2c4bba2bd4be5e822f.tar.bz2 |
fix: constexpr bit_cast with empty base classes (#82383)
Prior to this commit, clang would fail to produce a constant value for
`b` in:
```c++
struct base {
};
struct s : base {
int z;
};
constexpr auto b = std::bit_cast<s>(0x12);
```
e.g. https://godbolt.org/z/srrbTMPq4
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions