Skip to content

Commit 0dbd39a

Browse files
[BPF] Remove an unnecessary cast (NFC) (#157230)
getZExtValue() already returns uint64_t.
1 parent 0af4c7f commit 0dbd39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/BPF/BTFDebug.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void BTFTypeEnum64::completeType(BTFDebug &BDebug) {
235235
BTFEnum.NameOff = BDebug.addString(Enum->getName());
236236
uint64_t Value;
237237
if (Enum->isUnsigned())
238-
Value = static_cast<uint64_t>(Enum->getValue().getZExtValue());
238+
Value = Enum->getValue().getZExtValue();
239239
else
240240
Value = static_cast<uint64_t>(Enum->getValue().getSExtValue());
241241
BTFEnum.Val_Lo32 = Value;

0 commit comments

Comments
 (0)