diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-03-24 14:58:44 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-03-24 14:58:44 +0000 |
commit | 87fa43be91be2f2fd91b4a592348e7c82c201371 (patch) | |
tree | 5922e5a7b20b3a05b8fb034dfa30abc84f03563f /test/Linker/Inputs | |
parent | f7a07617aac086b3654134b0602d056a27fb1011 (diff) |
Fix resolution of linkonce symbols in comdats.
After comdat processing, the symbols still go through regular symbol
resolution.
We were not doing it for linkonce symbols since they are lazy linked.
This fixes pr27044.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264288 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Linker/Inputs')
-rw-r--r-- | test/Linker/Inputs/pr27044.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Linker/Inputs/pr27044.ll b/test/Linker/Inputs/pr27044.ll new file mode 100644 index 00000000000..907643c115d --- /dev/null +++ b/test/Linker/Inputs/pr27044.ll @@ -0,0 +1,7 @@ +$foo = comdat any +define linkonce_odr i32 @f1() comdat($foo) { + ret i32 1 +} +define void @f2() comdat($foo) { + ret void +} |