<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 16, 2016 at 1:58 PM, Derek Schuff via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dschuff<br>
Date: Fri Sep 16 15:58:31 2016<br>
New Revision: 281773<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=281773&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=281773&view=rev</a><br>
Log:<br>
[WebAssembly] Fix function types of CFGStackify tests<br>
<br>
Make the function's declared type match its (lack of) return type<br>
<br>
Modified:<br>
    llvm/trunk/test/CodeGen/<wbr>WebAssembly/cfg-stackify.ll<br>
<br>
Modified: llvm/trunk/test/CodeGen/<wbr>WebAssembly/cfg-stackify.ll<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/WebAssembly/cfg-stackify.ll?rev=281773&r1=281772&r2=281773&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/llvm/trunk/test/<wbr>CodeGen/WebAssembly/cfg-<wbr>stackify.ll?rev=281773&r1=<wbr>281772&r2=281773&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- llvm/trunk/test/CodeGen/<wbr>WebAssembly/cfg-stackify.ll (original)<br>
+++ llvm/trunk/test/CodeGen/<wbr>WebAssembly/cfg-stackify.ll Fri Sep 16 15:58:31 2016<br>
@@ -284,7 +284,7 @@ entry:<br>
 ; OPT: i32.store $drop=, 0($0), $pop{{[0-9]+}}{{$}}<br>
 ; OPT: br 0{{$}}<br>
 ; OPT: .LBB7_2:<br>
-define i32 @minimal_loop(i32* %p) {<br>
+define void @minimal_loop(i32* %p) {<br></blockquote><div><br></div><div>The previous code with a non-void return type and an infinite loop instead of a return is valid in LLVM IR, so the backend should be able to handle it. Was this code triggering a bug?<br><br></div><div>Dan<br><br></div></div></div></div>