From 964c527cb9e8638bc4994bc81f6e016f4326da52 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 26 Oct 2025 23:14:32 -0700 Subject: [PATCH] [WebAssembly] Remove a redundant cast (NFC) Local is already of type unsigned. --- llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp index 27f7e1ada1250..5a1779c2c80fb 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp @@ -81,7 +81,7 @@ WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF, // Abuse object size to record number of WebAssembly locals allocated to // this object. MFI.setObjectSize(FrameIndex, ValueVTs.size()); - return static_cast(Local); + return Local; } /// We need a base pointer in the case of having items on the stack that