diff options
author | Kazu Hirata <kazu@google.com> | 2025-06-29 19:19:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-29 19:19:31 -0700 |
commit | 678ccd5e536d457bde3dbd5d9a24e23024549b3e (patch) | |
tree | 42222af0d0419c9cc6efcae2abbadb533c12e765 /llvm/lib/IR/DebugInfo.cpp | |
parent | d4b5905a259108aa48678311b3ba7357ab108bc9 (diff) | |
download | llvm-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.cpp | 2 |
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; } |