forked from OSchip/llvm-project
[WebAssembly] Add return type annotations in fast isel.
llvm-svn: 291498
This commit is contained in:
parent
603715c66b
commit
6055fbae62
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue