]> granicus.if.org Git - clang/commit
When IRgen refers to a function declaration that is not a definition,
authorDouglas Gregor <dgregor@apple.com>
Wed, 9 Feb 2011 02:03:05 +0000 (02:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 9 Feb 2011 02:03:05 +0000 (02:03 +0000)
commita29bf41b8f49578207ce36f6b21ff9bb7ee77bab
tree93aaf5a946105e621e742da05ab276d8a6991309
parent5f022d82696c84e4d127c558871d68ac6273274e
When IRgen refers to a function declaration that is not a definition,
and we later find the definition, make sure that we add the definition
(not the declaration) to the list of deferred definitions to
emit. Fixes PR8864.

Thanks to Nick Lewycky for testing this patch out

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125157 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/GlobalDecl.h
test/CodeGenCXX/friend-redecl.cpp [new file with mode: 0644]