From 4e9bac3769cb668aad20f1ac2d6a35d9ba452f3a Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 24 Jul 2009 21:56:17 +0000 Subject: 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 --- test/Assembler/2009-07-24-ZeroArgGEP.ll | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/Assembler/2009-07-24-ZeroArgGEP.ll (limited to 'test/Assembler') 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) + -- cgit v1.1