]> granicus.if.org Git - clang/commit
Set the "implicitly inline" bit on a method as soon as we see a definition
authorJohn McCall <rjmccall@apple.com>
Wed, 15 Dec 2010 04:00:32 +0000 (04:00 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 15 Dec 2010 04:00:32 +0000 (04:00 +0000)
commitbfdcdc8e26097c9dbb4c40d78296f6ccc3e6684c
tree80b57258c03700b50172959830acf7fc36398940
parentbebbe0d9b7568ce43a464286bee49429489ef483
Set the "implicitly inline" bit on a method as soon as we see a definition
within the class.  Teach IR gen to look for function definitions in record
lexical contexts when deciding whether to emit a function whose address
was taken.  Fixes PR8789.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121833 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaDecl.cpp
test/CodeGenCXX/inline-functions.cpp