We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada22c8 commit 54b2914Copy full SHA for 54b2914
clang/lib/AST/VTableBuilder.cpp
@@ -270,8 +270,8 @@ static BaseOffset
270
ComputeReturnAdjustmentBaseOffset(ASTContext &Context,
271
const CXXMethodDecl *DerivedMD,
272
const CXXMethodDecl *BaseMD) {
273
- const FunctionType *BaseFT = BaseMD->getType()->getAs<FunctionType>();
274
- const FunctionType *DerivedFT = DerivedMD->getType()->getAs<FunctionType>();
+ const auto *BaseFT = BaseMD->getType()->castAs<FunctionType>();
+ const auto *DerivedFT = DerivedMD->getType()->castAs<FunctionType>();
275
276
// Canonicalize the return types.
277
CanQualType CanDerivedReturnType =
0 commit comments