OSDN Git Service

[WebAssembly] Fix broken assumption that all bitcasts are to functions types
authorSam Clegg <sbc@chromium.org>
Tue, 13 Nov 2018 19:14:02 +0000 (19:14 +0000)
committerSam Clegg <sbc@chromium.org>
Tue, 13 Nov 2018 19:14:02 +0000 (19:14 +0000)
commit7d412f9e75484e2dc0f53bf87d9375d2a9d405ef
tree70198696d8c432eae5b6427d67b61dced3e31282
parent9d764382760690786559fa602a1fc8a595d56c7c
[WebAssembly] Fix broken assumption that all bitcasts are to functions types

Specifically, we can bitcast to void.

Fixes PR39591

Differential Revision: https://reviews.llvm.org/D54447

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
test/CodeGen/WebAssembly/add-prototypes.ll