[llvm] r291498 - [WebAssembly] Add return type annotations in fast isel.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 15:09:38 PST 2017


Author: djg
Date: Mon Jan  9 17:09:38 2017
New Revision: 291498

URL: http://llvm.org/viewvc/llvm-project?rev=291498&view=rev
Log:
[WebAssembly] Add return type annotations in fast isel.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyFastISel.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyFastISel.cpp?rev=291498&r1=291497&r2=291498&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyFastISel.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyFastISel.cpp Mon Jan  9 17:09:38 2017
@@ -663,6 +663,9 @@ bool WebAssemblyFastISel::fastLowerArgum
   for (auto const &Arg : F->args())
     MFI->addParam(getLegalType(getSimpleType(Arg.getType())));
 
+  if (!F->getReturnType()->isVoidTy())
+    MFI->addResult(getLegalType(getSimpleType(F->getReturnType())));
+
   return true;
 }
 




More information about the llvm-commits mailing list