From f08e9614393c53a10a98d989c16d8ef11af2de37 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Wed, 8 Dec 2004 07:25:10 +0000 Subject: [PATCH] Add regression git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18624 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../InstCombine/2004-12-08-InstCombineCrash.ll | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll diff --git a/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll b/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll new file mode 100644 index 00000000000..02939c0c3ee --- /dev/null +++ b/test/Transforms/InstCombine/2004-12-08-InstCombineCrash.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as %s -o - | opt -instcombine + + %struct.llvm_java_object_base = type opaque + "java/lang/Object" = type { %struct.llvm_java_object_base } + "java/lang/StringBuffer" = type { "java/lang/Object", int, { "java/lang/Object", uint, [0 x ushort] }*, bool } + +implementation ; Functions: + +void "java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer;"() { +bc0: + %tmp53 = getelementptr "java/lang/StringBuffer"* null, int 0, uint 1 ; [#uses=1] + store int 0, int* %tmp53 + ret void +}