OSDN Git Service

[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 c309db4..d3ab439 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(