File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ class Boolean final {
82
82
Boolean truncate (unsigned TruncBits) const { return *this ; }
83
83
84
84
static Boolean bitcastFromMemory (const std::byte *Buff, unsigned BitWidth) {
85
+ // Boolean width is currently always 8 for all supported targets. If this
86
+ // changes we need to get the bool width from the target info.
85
87
assert (BitWidth == 8 );
86
88
bool Val = static_cast <bool >(*Buff);
87
89
return Boolean (Val);
Original file line number Diff line number Diff line change @@ -6426,7 +6426,7 @@ bool Compiler<Emitter>::emitBuiltinBitCast(const CastExpr *E) {
6426
6426
QualType ToType = E->getType ();
6427
6427
std::optional<PrimType> ToT = classify (ToType);
6428
6428
6429
- assert (!DiscardResult && " Implement" );
6429
+ assert (!DiscardResult && " Implement DiscardResult mode for bitcasts. " );
6430
6430
6431
6431
if (ToType->isNullPtrType ()) {
6432
6432
if (!this ->discard (SubExpr))
@@ -6449,7 +6449,7 @@ bool Compiler<Emitter>::emitBuiltinBitCast(const CastExpr *E) {
6449
6449
6450
6450
if (!ToT || ToT == PT_Ptr) {
6451
6451
// Conversion to an array or record type.
6452
- assert (false && " Implement" );
6452
+ assert (false && " Implement bitcast to pointers. " );
6453
6453
}
6454
6454
assert (ToT);
6455
6455
You can’t perform that action at this time.
0 commit comments