@@ -667,8 +667,8 @@ bool Compiler<Emitter>::VisitCastExpr(const CastExpr *CE) {
667
667
}
668
668
669
669
case CK_VectorSplat: {
670
- assert (!classify (CE->getType ()));
671
- assert (classify (SubExpr->getType ()));
670
+ assert (!canClassify (CE->getType ()));
671
+ assert (canClassify (SubExpr->getType ()));
672
672
assert (CE->getType ()->isVectorType ());
673
673
674
674
if (!Initializing) {
@@ -2070,7 +2070,7 @@ bool Compiler<Emitter>::visitCallArgs(ArrayRef<const Expr *> Args,
2070
2070
2071
2071
unsigned ArgIndex = 0 ;
2072
2072
for (const Expr *Arg : Args) {
2073
- if (OptPrimType T = classify (Arg)) {
2073
+ if (canClassify (Arg)) {
2074
2074
if (!this ->visit (Arg))
2075
2075
return false ;
2076
2076
} else {
@@ -3155,7 +3155,7 @@ bool Compiler<Emitter>::VisitCXXNoexceptExpr(const CXXNoexceptExpr *E) {
3155
3155
template <class Emitter >
3156
3156
bool Compiler<Emitter>::VisitCXXConstructExpr(const CXXConstructExpr *E) {
3157
3157
QualType T = E->getType ();
3158
- assert (!classify (T));
3158
+ assert (!canClassify (T));
3159
3159
3160
3160
if (T->isRecordType ()) {
3161
3161
const CXXConstructorDecl *Ctor = E->getConstructor ();
@@ -4150,7 +4150,7 @@ template <class Emitter> bool Compiler<Emitter>::visit(const Expr *E) {
4150
4150
4151
4151
// Create local variable to hold the return value.
4152
4152
if (!E->isGLValue () && !E->getType ()->isAnyComplexType () &&
4153
- !classify (E->getType ())) {
4153
+ !canClassify (E->getType ())) {
4154
4154
std::optional<unsigned > LocalIndex = allocateLocal (E);
4155
4155
if (!LocalIndex)
4156
4156
return false ;
@@ -4170,7 +4170,7 @@ template <class Emitter> bool Compiler<Emitter>::visit(const Expr *E) {
4170
4170
4171
4171
template <class Emitter >
4172
4172
bool Compiler<Emitter>::visitInitializer(const Expr *E) {
4173
- assert (!classify (E->getType ()));
4173
+ assert (!canClassify (E->getType ()));
4174
4174
4175
4175
OptionScope<Emitter> Scope (this , /* NewDiscardResult=*/ false ,
4176
4176
/* NewInitializing=*/ true );
@@ -4377,7 +4377,7 @@ bool Compiler<Emitter>::visitZeroArrayInitializer(QualType T, const Expr *E) {
4377
4377
template <class Emitter >
4378
4378
bool Compiler<Emitter>::visitAssignment(const Expr *LHS, const Expr *RHS,
4379
4379
const Expr *E) {
4380
- if (!classify (E->getType ()))
4380
+ if (!canClassify (E->getType ()))
4381
4381
return false ;
4382
4382
4383
4383
if (!this ->visit (RHS))
0 commit comments