From 678ccd5e536d457bde3dbd5d9a24e23024549b3e Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 29 Jun 2025 19:19:31 -0700 Subject: [PATCH] [IR] Remove an unnecessary cast (NFC) (#146274) DT is already of DIType *. --- llvm/lib/IR/DebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index ecb19fd3c82d..d4d8d0376375 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -376,7 +376,7 @@ bool DebugInfoFinder::addType(DIType *DT) { if (!NodesSeen.insert(DT).second) return false; - TYs.push_back(const_cast(DT)); + TYs.push_back(DT); return true; }