diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2014-09-20 00:10:47 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-09-20 00:10:47 +0000 |
| commit | 975726345cb4914152fd7d07d92d41dcfd921503 (patch) | |
| tree | fb7b9a1240dd5cf2924e826f204b24445e1bebee /llvm/test/CodeGen/Generic | |
| parent | d780781b1f273b16eb0d1355a173180764e73fc6 (diff) | |
| download | bcm5719-llvm-975726345cb4914152fd7d07d92d41dcfd921503.tar.gz bcm5719-llvm-975726345cb4914152fd7d07d92d41dcfd921503.zip | |
Fix crash with an insertvalue that produces an empty object.
llvm-svn: 218171
Diffstat (limited to 'llvm/test/CodeGen/Generic')
| -rw-r--r-- | llvm/test/CodeGen/Generic/empty-insertvalue.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/empty-insertvalue.ll b/llvm/test/CodeGen/Generic/empty-insertvalue.ll new file mode 100644 index 00000000000..e4cc27c2ffc --- /dev/null +++ b/llvm/test/CodeGen/Generic/empty-insertvalue.ll @@ -0,0 +1,7 @@ +; RUN: llc < %s + +define void @f() { +entry: + %0 = insertvalue { [0 x { i8*, i8* }], [0 x { i8*, i64 }] } undef, [0 x { i8*, i8* }] undef, 0 + ret void +} |

