Skip to content

Commit 7d6f4d0

Browse files
[WebAssembly] Remove a redundant cast (NFC) (#165508)
Local is already of type unsigned.
1 parent cd2ce69 commit 7d6f4d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ WebAssemblyFrameLowering::getLocalForStackObject(MachineFunction &MF,
8181
// Abuse object size to record number of WebAssembly locals allocated to
8282
// this object.
8383
MFI.setObjectSize(FrameIndex, ValueVTs.size());
84-
return static_cast<unsigned>(Local);
84+
return Local;
8585
}
8686

8787
/// We need a base pointer in the case of having items on the stack that

0 commit comments

Comments
 (0)