diff options
Diffstat (limited to 'clang/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/Sema/SemaDecl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp index 2f866c04975..61de36faf69 100644 --- a/clang/Sema/SemaDecl.cpp +++ b/clang/Sema/SemaDecl.cpp @@ -1032,8 +1032,7 @@ Sema::DeclTy *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Declarator &D) { } } Decl *decl = static_cast<Decl*>(ActOnDeclarator(GlobalScope, D, 0)); - FunctionDecl *FD = dyn_cast<FunctionDecl>(decl); - assert(FD != 0 && "ActOnDeclarator() didn't return a FunctionDecl"); + FunctionDecl *FD = cast<FunctionDecl>(decl); CurFunctionDecl = FD; // Create Decl objects for each parameter, adding them to the FunctionDecl. |

