diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-25 21:00:44 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-25 21:00:44 +0000 |
| commit | 3d4f3a0da90bd1a34ff3ef4c3b99c1dbcca2e6cb (patch) | |
| tree | ed3b040c0d4251b2811be13f5ef71cb7ee52bf3d /llvm/test | |
| parent | 971abe8256a122c7afe6dc08250b86b1d61b57f7 (diff) | |
| download | bcm5719-llvm-3d4f3a0da90bd1a34ff3ef4c3b99c1dbcca2e6cb.tar.gz bcm5719-llvm-3d4f3a0da90bd1a34ff3ef4c3b99c1dbcca2e6cb.zip | |
IRLinker: fix double scheduling of mapping a global value because of an alias
This test was hitting an assertion in the value mapper because
the IRLinker was trying to map two times @A while materializing
the initializer for @C.
Fix http://llvm.org/PR27850
Differential Revision: http://reviews.llvm.org/D20586
llvm-svn: 270757
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Linker/alias-3.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Linker/alias-3.ll b/llvm/test/Linker/alias-3.ll new file mode 100644 index 00000000000..4fb88a65c19 --- /dev/null +++ b/llvm/test/Linker/alias-3.ll @@ -0,0 +1,13 @@ +; RUN: llvm-link %s -S -o - | FileCheck %s +target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-apple-macosx10.9" + +; CHECK-DAG: @A = internal constant i8 1 +; CHECK-DAG: @B = alias i8, i8* @A +; CHECK-DAG: @C = global [2 x i8*] [i8* @A, i8* @B] + +@A = internal constant i8 1 +@B = alias i8, i8* @A +@C = global [2 x i8*] [i8* @A, i8* @B] + + |

