OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f31bf6
)
[WebAssembly] Add return type annotations in fast isel.
author
Dan Gohman
<dan433584@gmail.com>
Mon, 9 Jan 2017 23:09:38 +0000
(23:09 +0000)
committer
Dan Gohman
<dan433584@gmail.com>
Mon, 9 Jan 2017 23:09:38 +0000
(23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291498
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
b/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
index
529540e
..
bc7020f
100644
(file)
--- a/
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+++ b/
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;
}