From d3711a0f2df82a2b5a325e49c04ff527a1a5d07e Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 9 Jan 2015 05:56:10 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDecl.cpp | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.50.1