]> granicus.if.org Git - clang/commit
When using a symbol with attribute weakref, search for it first and
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 16 Oct 2012 17:45:27 +0000 (17:45 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 16 Oct 2012 17:45:27 +0000 (17:45 +0000)
commit4695f91f4302a90ae462cd64dda59b34c3dad821
tree66649fe07335fd10f213614c983a10aee2f804d2
parent1c9a2daf902aacb1a606497a7d09a7c2c29957ed
When using a symbol with attribute weakref, search for it first and
don't try the normal GetOrCreateLLVM. The latter could drop the weak
atrtibute on the second reference, if there is no explicit declaration
of the aliasee.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166032 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/attr-weakref.c