From 6d97bb00e778071e48449fd19aa99bbc8ec4b1e6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 5 Sep 2025 10:22:03 -0700 Subject: [PATCH] [BPF] Remove an unnecessary cast (NFC) getZExtValue() already returns uint64_t. --- llvm/lib/Target/BPF/BTFDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/BPF/BTFDebug.cpp b/llvm/lib/Target/BPF/BTFDebug.cpp index bed6bc98b1679..ba4b48990c647 100644 --- a/llvm/lib/Target/BPF/BTFDebug.cpp +++ b/llvm/lib/Target/BPF/BTFDebug.cpp @@ -235,7 +235,7 @@ void BTFTypeEnum64::completeType(BTFDebug &BDebug) { BTFEnum.NameOff = BDebug.addString(Enum->getName()); uint64_t Value; if (Enum->isUnsigned()) - Value = static_cast(Enum->getValue().getZExtValue()); + Value = Enum->getValue().getZExtValue(); else Value = static_cast(Enum->getValue().getSExtValue()); BTFEnum.Val_Lo32 = Value;