]> granicus.if.org Git - clang/commitdiff
eli correctly points out that this code is dead, just rip it out for
authorChris Lattner <sabre@nondot.org>
Wed, 13 May 2009 04:52:12 +0000 (04:52 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 May 2009 04:52:12 +0000 (04:52 +0000)
now until someone does it right

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 523e71e9b78e8d5e1fbce6126cd858816004b5ba..5914292dab63a9614b59b74745ba483e98469997 100644 (file)
@@ -2076,13 +2076,6 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
     }
     
     // This is a C++ method declaration.
-    
-    // FIXME: All inline method declarations are semantically inline.  We
-    // should add a new bit to keep track of whether they were declared with an
-    // inline keyword as well.
-    if (CurContext == DC && IsFunctionDefinition)
-      isInline = true;
-    
     NewFD = CXXMethodDecl::Create(Context, cast<CXXRecordDecl>(DC),
                                   D.getIdentifierLoc(), Name, R,
                                   (SC == FunctionDecl::Static), isInline);