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:
parent
614d1a6d81
commit
0bfa1b6007
@ -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
Block a user