Silly mistake from r137777; restore significant isStructTy() checks. While here, be a bit more defensive

with unknown instructions.

Fixes PR10687.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137836 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eli Friedman
2011-08-17 18:10:43 +00:00
parent 358499ea3b
commit 447f95202a
2 changed files with 28 additions and 4 deletions

View File

@@ -161,3 +161,12 @@ define i1 @test9() {
; CHECK: @test9
; CHECK: icmp ugt
}
; Make sure we handle extractvalue
define i64 @test10() {
entry:
%e = extractvalue { i64, i64 } undef, 1
ret i64 %e
; CHECK: @test10
; CHECK: ret i64 undef
}