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 | 5aeb251103a19f4c84636f3385c70157c5b6b8b3 (patch) | |
tree | a177b968364f6a7617362c4ba589f7aeee787b00 /test/Assembler/2009-07-24-ZeroArgGEP.ll | |
parent | ace089079584cced3e3562d271f38b9d9ef3f8f8 (diff) | |
download | external_llvm-5aeb251103a19f4c84636f3385c70157c5b6b8b3.zip external_llvm-5aeb251103a19f4c84636f3385c70157c5b6b8b3.tar.gz external_llvm-5aeb251103a19f4c84636f3385c70157c5b6b8b3.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/2009-07-24-ZeroArgGEP.ll')
-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) + |