From b7e01a085a79c85559cde20616141540a77c6449 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 24 Aug 2015 22:31:52 +0000 Subject: [PATCH] [WebAssembly] DYNAMIC_STACKALLOC returns a pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245893 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/WebAssembly/WebAssemblyISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp index c309db48f63..d3ab439b523 100644 --- a/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp +++ b/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp @@ -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( -- 2.34.1