From: Dan Gohman Date: Mon, 24 Aug 2015 22:31:52 +0000 (+0000) Subject: [WebAssembly] DYNAMIC_STACKALLOC returns a pointer. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b7e01a085a79c85559cde20616141540a77c6449;p=oota-llvm.git [WebAssembly] DYNAMIC_STACKALLOC returns a pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245893 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(