diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-24 21:56:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-24 21:56:17 +0000 |
commit | 4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a (patch) | |
tree | a177b968364f6a7617362c4ba589f7aeee787b00 /test/Assembler | |
parent | 0b6afa8c71f3ee32d42390c0c46c28ff31aa6325 (diff) | |
download | external_llvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.zip external_llvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.tar.gz external_llvm-4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a.tar.bz2 |
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.ll | 5 |
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 0000000..ce4a961 --- /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) + |