Skip to content

Commit 6c33ab7

Browse files
kazutakahiratamahesh-attarde
authored andcommitted
[AsmPrinter] Remove an unnecessary cast (NFC) (llvm#150257)
getTag already returns dwarf::Tag.
1 parent 4fee112 commit 6c33ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ void DwarfCompileUnit::constructCallSiteParmEntryDIEs(
13791379

13801380
DIE *DwarfCompileUnit::constructImportedEntityDIE(
13811381
const DIImportedEntity *Module) {
1382-
DIE *IMDie = DIE::get(DIEValueAllocator, (dwarf::Tag)Module->getTag());
1382+
DIE *IMDie = DIE::get(DIEValueAllocator, Module->getTag());
13831383
insertDIE(Module, IMDie);
13841384
DIE *EntityDie;
13851385
auto *Entity = Module->getEntity();

0 commit comments

Comments
 (0)