aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-06-29 19:19:31 -0700
committerGitHub <noreply@github.com>2025-06-29 19:19:31 -0700
commit678ccd5e536d457bde3dbd5d9a24e23024549b3e (patch)
tree42222af0d0419c9cc6efcae2abbadb533c12e765 /llvm/lib/IR/DebugInfo.cpp
parentd4b5905a259108aa48678311b3ba7357ab108bc9 (diff)
downloadllvm-678ccd5e536d457bde3dbd5d9a24e23024549b3e.zip
llvm-678ccd5e536d457bde3dbd5d9a24e23024549b3e.tar.gz
llvm-678ccd5e536d457bde3dbd5d9a24e23024549b3e.tar.bz2
[IR] Remove an unnecessary cast (NFC) (#146274)
DT is already of DIType *.
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index ecb19fd..d4d8d03 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<DIType *>(DT));
+ TYs.push_back(DT);
return true;
}