@@ -666,8 +666,8 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *CE) {
666666 }
667667
668668 case CK_VectorSplat: {
669- assert (!classify (CE->getType ()));
670- assert (classify (SubExpr->getType ()));
669+ assert (!canClassify (CE->getType ()));
670+ assert (canClassify (SubExpr->getType ()));
671671 assert (CE->getType ()->isVectorType ());
672672
673673 if (!Initializing) {
@@ -2069,7 +2069,7 @@ bool Compiler<Emitter>::visitCallArgs(ArrayRef<const Expr *> Args,
20692069
20702070 unsigned ArgIndex = 0 ;
20712071 for (const Expr *Arg : Args) {
2072- if (OptPrimType T = classify (Arg)) {
2072+ if (canClassify (Arg)) {
20732073 if (!this ->visit (Arg))
20742074 return false ;
20752075 } else {
@@ -3154,7 +3154,7 @@ bool Compiler<Emitter>::VisitCXXNoexceptExpr(const CXXNoexceptExpr *E) {
31543154template <class Emitter >
31553155bool Compiler<Emitter>::VisitCXXConstructExpr(const CXXConstructExpr *E) {
31563156 QualType T = E->getType ();
3157- assert (!classify (T));
3157+ assert (!canClassify (T));
31583158
31593159 if (T->isRecordType ()) {
31603160 const CXXConstructorDecl *Ctor = E->getConstructor ();
@@ -4149,7 +4149,7 @@ template <class Emitter> bool Compiler<Emitter>::visit(const Expr *E) {
41494149
41504150 // Create local variable to hold the return value.
41514151 if (!E->isGLValue () && !E->getType ()->isAnyComplexType () &&
4152- !classify (E->getType ())) {
4152+ !canClassify (E->getType ())) {
41534153 std::optional<unsigned > LocalIndex = allocateLocal (E);
41544154 if (!LocalIndex)
41554155 return false ;
@@ -4169,7 +4169,7 @@ template <class Emitter> bool Compiler<Emitter>::visit(const Expr *E) {
41694169
41704170template <class Emitter >
41714171bool Compiler<Emitter>::visitInitializer(const Expr *E) {
4172- assert (!classify (E->getType ()));
4172+ assert (!canClassify (E->getType ()));
41734173
41744174 OptionScope<Emitter> Scope (this , /* NewDiscardResult=*/ false ,
41754175 /* NewInitializing=*/ true );
@@ -4376,7 +4376,7 @@ bool Compiler<Emitter>::visitZeroArrayInitializer(QualType T, const Expr *E) {
43764376template <class Emitter >
43774377bool Compiler<Emitter>::visitAssignment(const Expr *LHS, const Expr *RHS,
43784378 const Expr *E) {
4379- if (!classify (E->getType ()))
4379+ if (!canClassify (E->getType ()))
43804380 return false ;
43814381
43824382 if (!this ->visit (RHS))
0 commit comments