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 05eb73a commit 9ef951dCopy full SHA for 9ef951d
clang/lib/CodeGen/CGCall.cpp
@@ -500,8 +500,7 @@ CodeGenTypes::arrangeCXXConstructorCall(const CallArgList &args,
500
/// definition of the given function.
501
const CGFunctionInfo &
502
CodeGenTypes::arrangeFunctionDeclaration(const GlobalDecl GD) {
503
- const FunctionDecl *FD = dyn_cast<FunctionDecl>(GD.getDecl());
504
- assert(FD && "GD must contain FunctionDecl");
+ const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
505
if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD))
506
if (MD->isImplicitObjectMemberFunction())
507
return arrangeCXXMethodDeclaration(MD);
0 commit comments