File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,20 +98,22 @@ class Context final {
9898 return classify (E->getType ());
9999 }
100100
101- bool canClassify (QualType T) {
101+ bool canClassify (QualType T) const {
102102 if (const auto *BT = dyn_cast<BuiltinType>(T)) {
103103 if (BT->isInteger () || BT->isFloatingPoint ())
104104 return true ;
105105 if (BT->getKind () == BuiltinType::Bool)
106106 return true ;
107107 }
108+ if (T->isPointerOrReferenceType ())
109+ return true ;
108110
109111 if (T->isArrayType () || T->isRecordType () || T->isAnyComplexType () ||
110112 T->isVectorType ())
111113 return false ;
112114 return classify (T) != std::nullopt ;
113115 }
114- bool canClassify (const Expr *E) {
116+ bool canClassify (const Expr *E) const {
115117 if (E->isGLValue ())
116118 return true ;
117119 return canClassify (E->getType ());
You can’t perform that action at this time.
0 commit comments