1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[WebAssembly] Add return type annotations in fast isel.

llvm-svn: 291498
This commit is contained in:
Dan Gohman 2017-01-09 23:09:38 +00:00
parent 614d1a6d81
commit 0bfa1b6007

View File

@ -663,6 +663,9 @@ bool WebAssemblyFastISel::fastLowerArguments() {
for (auto const &Arg : F->args())
MFI->addParam(getLegalType(getSimpleType(Arg.getType())));
if (!F->getReturnType()->isVoidTy())
MFI->addResult(getLegalType(getSimpleType(F->getReturnType())));
return true;
}