Skip to content

Commit 2ae5e2d

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
1 parent e902c69 commit 2ae5e2d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

clang/lib/Analysis/FlowSensitive/SmartPointerAccessorCaching.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@ bool hasSmartPointerClassShape(const CXXRecordDecl &RD, bool &HasGet,
4141
HasStar = true;
4242
StarReturnType = MD->getReturnType()
4343
.getNonReferenceType()
44-
->getCanonicalTypeUnqualified();
44+
->getCanonicalTypeUnqualified()
45+
.getUnqualifiedType();
4546
}
4647
break;
4748
case OO_Arrow:
4849
if (MD->getReturnType()->isPointerType()) {
4950
HasArrow = true;
5051
ArrowReturnType = MD->getReturnType()
5152
->getPointeeType()
52-
->getCanonicalTypeUnqualified();
53+
->getCanonicalTypeUnqualified()
54+
.getUnqualifiedType();
5355
}
5456
break;
5557
case OO_None: {
@@ -61,14 +63,16 @@ bool hasSmartPointerClassShape(const CXXRecordDecl &RD, bool &HasGet,
6163
HasGet = true;
6264
GetReturnType = MD->getReturnType()
6365
->getPointeeType()
64-
->getCanonicalTypeUnqualified();
66+
->getCanonicalTypeUnqualified()
67+
.getUnqualifiedType();
6568
}
6669
} else if (II->isStr("value")) {
6770
if (MD->getReturnType()->isReferenceType()) {
6871
HasValue = true;
6972
ValueReturnType = MD->getReturnType()
7073
.getNonReferenceType()
71-
->getCanonicalTypeUnqualified();
74+
->getCanonicalTypeUnqualified()
75+
.getUnqualifiedType();
7276
}
7377
}
7478
} break;

0 commit comments

Comments
 (0)