summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-01-09 23:09:38 +0000
committerDan Gohman <dan433584@gmail.com>2017-01-09 23:09:38 +0000
commit6055fbae620c8a16ba56826737b39089660b01cb (patch)
treef24a53b162ffbd94d181caa85d8b2ffbe6195e3c /llvm/lib
parent603715c66b6b741c75e496c3a68193b4a84d8289 (diff)
downloadbcm5719-llvm-6055fbae620c8a16ba56826737b39089660b01cb.tar.gz
bcm5719-llvm-6055fbae620c8a16ba56826737b39089660b01cb.zip
[WebAssembly] Add return type annotations in fast isel.
llvm-svn: 291498
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index 529540ea4ed..bc7020fded8 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
@@ -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;
}
OpenPOWER on IntegriCloud