diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-09 21:49:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-09 21:49:17 +0000 |
commit | 1acea2db56e8bef378dc53f732f005ade4205d68 (patch) | |
tree | bbb1226c3ee978073ee4d74f32451533b9579186 /test/Assembler | |
parent | 482018007c06507ec667f420ccbccb3d134acc3b (diff) | |
download | llvm-1acea2db56e8bef378dc53f732f005ade4205d68.tar.gz llvm-1acea2db56e8bef378dc53f732f005ade4205d68.tar.bz2 llvm-1acea2db56e8bef378dc53f732f005ade4205d68.tar.xz |
Don't crash on redefinitions.
One error we were not deleting the alias or putting it in the Module. The
end result is that there was an use left of the aliasee when the module was
deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/alias-redefinition.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/alias-redefinition.ll b/test/Assembler/alias-redefinition.ll new file mode 100644 index 0000000000..19ad85bf5f --- /dev/null +++ b/test/Assembler/alias-redefinition.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as %s 2>&1 | FileCheck %s + +; CHECK: error: redefinition of global named '@bar' + +@foo = global i32 0 +@bar = alias i32* @foo +@bar = alias i32* @foo |