diff options
Diffstat (limited to 'test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll')
-rw-r--r-- | test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll b/test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll new file mode 100644 index 000000000000..0a604e9dcc3c --- /dev/null +++ b/test/Transforms/ScalarRepl/2009-05-08-I1Crash.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis +; PR4146 + + %wrapper = type { i1 } + +define void @f() { +entry: + %w = alloca %wrapper, align 8 ; <%wrapper*> [#uses=1] + %0 = getelementptr %wrapper* %w, i64 0, i32 0 ; <i1*> + store i1 true, i1* %0 + ret void +} |