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 058a100 commit 3065b9bCopy full SHA for 3065b9b
clang/lib/CodeGen/CGCall.cpp
@@ -5713,8 +5713,8 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
5713
if (callOrInvoke && *callOrInvoke && (*callOrInvoke)->isIndirectCall()) {
5714
if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(TargetDecl)) {
5715
// Type id metadata is set only for C/C++ contexts.
5716
- if (dyn_cast<CXXConstructorDecl>(FD) || dyn_cast<CXXMethodDecl>(FD) ||
5717
- dyn_cast<CXXDestructorDecl>(FD)) {
+ if (isa<CXXConstructorDecl>(FD) || isa<CXXMethodDecl>(FD) ||
+ isa<CXXDestructorDecl>(FD)) {
5718
CGM.CreateFunctionTypeMetadataForIcall(FD->getType(), *callOrInvoke);
5719
}
5720
0 commit comments