From: Derek Schuff Date: Fri, 16 Sep 2016 20:58:31 +0000 (+0000) Subject: [WebAssembly] Fix function types of CFGStackify tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=740da34c340f913112358b3baa566fbc7f773e8d;p=llvm [WebAssembly] Fix function types of CFGStackify tests Make the function's declared type match its (lack of) return type git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281773 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/WebAssembly/cfg-stackify.ll b/test/CodeGen/WebAssembly/cfg-stackify.ll index 0990eb186d6..9a036228930 100644 --- a/test/CodeGen/WebAssembly/cfg-stackify.ll +++ b/test/CodeGen/WebAssembly/cfg-stackify.ll @@ -284,7 +284,7 @@ entry: ; OPT: i32.store $drop=, 0($0), $pop{{[0-9]+}}{{$}} ; OPT: br 0{{$}} ; OPT: .LBB7_2: -define i32 @minimal_loop(i32* %p) { +define void @minimal_loop(i32* %p) { entry: store volatile i32 0, i32* %p br label %loop @@ -429,7 +429,7 @@ exit: ; OPT: br 0{{$}} ; OPT: .LBB11_6: ; OPT-NEXT: end_loop{{$}} -define i32 @doublediamond_in_a_loop(i32 %a, i32 %b, i32* %p) { +define void @doublediamond_in_a_loop(i32 %a, i32 %b, i32* %p) { entry: br label %header header: @@ -774,7 +774,7 @@ u1: ; OPT-NEXT: br 0{{$}} ; OPT-NEXT: .LBB17_2: ; OPT-NEXT: end_loop{{$}} -define i32 @test8() { +define void @test8() { bb: br label %bb1