Renamed some C type facility and fixed a few comments.

Added some new C type code facility.
Removed some unused type predicates.
This commit is contained in:
acqn
2022-10-12 13:10:17 +08:00
parent bad961b36f
commit a4a1230c62
13 changed files with 330 additions and 352 deletions

View File

@@ -607,7 +607,7 @@ void OpAssign (const GenDesc* Gen, ExprDesc* Expr, const char* Op)
Expr2.Flags |= Expr->Flags & E_MASK_KEEP_SUBEXPR;
/* Only "=" accept struct/union */
if (IsClassStruct (ltype) ? Gen != 0 : !IsClassScalar (ltype)) {
if (IsClassStruct (ltype) ? Gen != 0 : !IsScalarType (ltype)) {
Error ("Invalid left operand for binary operator '%s'", Op);
/* Continue. Wrong code will be generated, but the compiler won't
** break, so this is the best error recovery.