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 {
8282 Boolean truncate (unsigned TruncBits) const { return *this ; }
8383
8484 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.
8587 assert (BitWidth == 8 );
8688 bool Val = static_cast <bool >(*Buff);
8789 return Boolean (Val);
Original file line number Diff line number Diff line change @@ -6426,7 +6426,7 @@ bool Compiler<Emitter>::emitBuiltinBitCast(const CastExpr *E) {
64266426 QualType ToType = E->getType ();
64276427 std::optional<PrimType> ToT = classify (ToType);
64286428
6429- assert (!DiscardResult && " Implement" );
6429+ assert (!DiscardResult && " Implement DiscardResult mode for bitcasts. " );
64306430
64316431 if (ToType->isNullPtrType ()) {
64326432 if (!this ->discard (SubExpr))
@@ -6449,7 +6449,7 @@ bool Compiler<Emitter>::emitBuiltinBitCast(const CastExpr *E) {
64496449
64506450 if (!ToT || ToT == PT_Ptr) {
64516451 // Conversion to an array or record type.
6452- assert (false && " Implement" );
6452+ assert (false && " Implement bitcast to pointers. " );
64536453 }
64546454 assert (ToT);
64556455
You can’t perform that action at this time.
0 commit comments