summaryrefslogtreecommitdiff
path: root/test/Assembler
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-24 21:56:17 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-24 21:56:17 +0000
commit4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a (patch)
treea177b968364f6a7617362c4ba589f7aeee787b00 /test/Assembler
parent0b6afa8c71f3ee32d42390c0c46c28ff31aa6325 (diff)
downloadllvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.tar.gz
llvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.tar.bz2
llvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.tar.xz
Fix assert assembling zero-argument constant GEP.
There's still a strict-aliasing violation here, but I don't feel like dealing with that right now... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r--test/Assembler/2009-07-24-ZeroArgGEP.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Assembler/2009-07-24-ZeroArgGEP.ll b/test/Assembler/2009-07-24-ZeroArgGEP.ll
new file mode 100644
index 0000000000..ce4a961486
--- /dev/null
+++ b/test/Assembler/2009-07-24-ZeroArgGEP.ll
@@ -0,0 +1,5 @@
+; RUN: llvm-as %s -o /dev/null -f
+
+@foo = global i32 0
+@bar = constant i32* getelementptr(i32* @foo)
+