[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 603715c66b
commit 6055fbae62
1 changed files with 3 additions and 0 deletions

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;
}