We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd16b07 commit 3268d51Copy full SHA for 3268d51
clang/lib/AST/ByteCode/InterpBuiltinBitCast.cpp
@@ -88,9 +88,8 @@ struct BitcastBuffer {
88
const std::byte *data() const { return Data.data(); }
89
90
std::byte *getBytes(unsigned BitOffset) const {
91
- if (BitOffset % 8 == 0)
92
- return const_cast<std::byte *>(data() + (BitOffset / 8));
93
- assert(false && "hmm, how to best handle this?");
+ assert(BitOffset % 8 == 0);
+ return const_cast<std::byte *>(data() + (BitOffset / 8));
94
}
95
96
bool allInitialized() const {
0 commit comments