diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-05 17:22:35 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:23 -0800 |
commit | 3fe3cef54a0a5e35d7815802676e302dac42c8e4 (patch) | |
tree | 5eb2a190519093bf295431f609567eb9923fc007 /tests/cases/selectstruct.ll | |
parent | 7b44f6c71fcc8b4888118d9232cb3bdf28f96590 (diff) |
legalize select structurals
Diffstat (limited to 'tests/cases/selectstruct.ll')
-rw-r--r-- | tests/cases/selectstruct.ll | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cases/selectstruct.ll b/tests/cases/selectstruct.ll index 90c15ac7..5c9fecf7 100644 --- a/tests/cases/selectstruct.ll +++ b/tests/cases/selectstruct.ll @@ -10,7 +10,8 @@ entry: %retval = alloca i32, align 4 ; [#uses=1 type=i32*] %. = select i1 %retval, { i32, i32 } { i32 55, i32 99 }, { i32, i32 } { i32 2, i32 6 } ; [#uses=1 type={ i32, i32 }] store i32 0, i32* %retval - %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0), i32 %.) ; [#uses=0 type=i32] + %.1 = extractvalue { i32, i32 } %., 0 + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0), i32 %.1) ; [#uses=0 type=i32] ret i32 1 } |