[WebAssembly] DYNAMIC_STACKALLOC returns a pointer.
authorDan Gohman <dan433584@gmail.com>
Mon, 24 Aug 2015 22:31:52 +0000 (22:31 +0000)
committerDan Gohman <dan433584@gmail.com>
Mon, 24 Aug 2015 22:31:52 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245893 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

index c309db48f6380425ba60528ad8d3a36f94cc8b5a..d3ab439b523cb9cf4a5ed6a3a5d096c49d15f871 100644 (file)
@@ -153,7 +153,7 @@ WebAssemblyTargetLowering::WebAssemblyTargetLowering(
   // Dynamic stack allocation: use the default expansion.
   setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);
   setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand);
-  setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand);
+  setOperationAction(ISD::DYNAMIC_STACKALLOC, MVTPtr, Expand);
 }
 
 FastISel *WebAssemblyTargetLowering::createFastISel(