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 @@ -231,15 +231,17 @@ std::vector<const NamedDecl *> HeuristicResolverImpl::resolveMemberExpr(
231
231
QualType BaseType = ME->getBaseType ();
232
232
if (ME->isArrow ()) {
233
233
BaseType = getPointeeType (BaseType);
234
+ if (BaseType.isNull ())
235
+ return {};
234
236
}
235
- if (BaseType.isNull ())
236
- return {};
237
237
if (const auto *BT = BaseType->getAs <BuiltinType>()) {
238
238
// If BaseType is the type of a dependent expression, it's just
239
239
// represented as BuiltinType::Dependent which gives us no information. We
240
240
// can get further by analyzing the dependent expression.
241
241
if (Base && BT->getKind () == BuiltinType::Dependent) {
242
242
BaseType = resolveExprToType (Base);
243
+ if (BaseType.isNull ())
244
+ return {};
243
245
}
244
246
}
245
247
if (const auto *AT = BaseType->getContainedAutoType ()) {
You can’t perform that action at this time.
0 commit comments