[PATCH] D43885: [WebAssembly] Test types only used by call_indirect are GC'd correctly

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 11:14:37 PST 2018


sbc100 added a comment.

I believe this is already tested in `lld/test/wasm/call-indirect.ll`:

  ; Indirect function call where no function actually has this type.               
  ; Ensures that the type entry is still created in this case.                     
  define void @call_ptr(i64 (i64)* %arg) {                                         
    %1 = call i64 %arg(i64 1)                                                      
    ret void                                                                       
  }                                                                                


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D43885





More information about the llvm-commits mailing list