File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -219,10 +219,6 @@ std::optional<PrimType> Context::classify(QualType T) const {
219
219
if (T->isBooleanType ())
220
220
return PT_Bool;
221
221
222
- // We map these to primitive arrays.
223
- if (T->isAnyComplexType () || T->isVectorType ())
224
- return std::nullopt;
225
-
226
222
if (T->isSignedIntegerOrEnumerationType ()) {
227
223
switch (Ctx.getIntWidth (T)) {
228
224
case 64 :
@@ -259,13 +255,9 @@ std::optional<PrimType> Context::classify(QualType T) const {
259
255
if (T->isNullPtrType ())
260
256
return PT_Ptr;
261
257
262
- if (T->isFloatingType ())
258
+ if (T->isRealFloatingType ())
263
259
return PT_Float;
264
260
265
- if (T->isSpecificBuiltinType (BuiltinType::BoundMember) ||
266
- T->isMemberPointerType ())
267
- return PT_MemberPtr;
268
-
269
261
if (T->isFunctionPointerType () || T->isFunctionReferenceType () ||
270
262
T->isFunctionType () || T->isBlockPointerType ())
271
263
return PT_Ptr;
@@ -279,9 +271,14 @@ std::optional<PrimType> Context::classify(QualType T) const {
279
271
if (const auto *DT = dyn_cast<DecltypeType>(T))
280
272
return classify (DT->getUnderlyingType ());
281
273
274
+ if (T->isSpecificBuiltinType (BuiltinType::BoundMember) ||
275
+ T->isMemberPointerType ())
276
+ return PT_MemberPtr;
277
+
282
278
if (T->isFixedPointType ())
283
279
return PT_FixedPoint;
284
280
281
+ // Vector and complex types get here.
285
282
return std::nullopt;
286
283
}
287
284
You can’t perform that action at this time.
0 commit comments