From: David Majnemer Date: Fri, 9 Jan 2015 05:56:10 +0000 (+0000) Subject: Sema: Remove some dead code from CreateNewFunctionDecl X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3711a0f2df82a2b5a325e49c04ff527a1a5d07e;p=clang Sema: Remove some dead code from CreateNewFunctionDecl The same code is already in Sema::ActOnFunctionDeclarator, the only caller of CreateNewFunctionDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225506 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 3af60cf299..8a5047592a 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -6613,9 +6613,6 @@ static FunctionDecl* CreateNewFunctionDecl(Sema &SemaRef, Declarator &D, if (D.isInvalidType()) NewFD->setInvalidDecl(); - // Set the lexical context. - NewFD->setLexicalDeclContext(SemaRef.CurContext); - return NewFD; }