Skip to content

Commit 0268792

Browse files
kazutakahiratarlavaee
authored andcommitted
[IR] Remove an unnecessary cast (NFC) (llvm#146274)
DT is already of DIType *.
1 parent caaeaaa commit 0268792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/DebugInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ bool DebugInfoFinder::addType(DIType *DT) {
376376
if (!NodesSeen.insert(DT).second)
377377
return false;
378378

379-
TYs.push_back(const_cast<DIType *>(DT));
379+
TYs.push_back(DT);
380380
return true;
381381
}
382382

0 commit comments

Comments
 (0)