Remove some unnecessary casts.

llvm-svn: 220658
This commit is contained in:
David Blaikie 2014-10-26 23:37:04 +00:00
parent a885796d5f
commit df1cca3a24
1 changed files with 2 additions and 2 deletions

View File

@ -1112,8 +1112,8 @@ void DwarfUnit::constructSubprogramArguments(DIE &Buffer, DITypeArray Args) {
createAndAddDIE(dwarf::DW_TAG_unspecified_parameters, Buffer);
} else {
DIE &Arg = createAndAddDIE(dwarf::DW_TAG_formal_parameter, Buffer);
addType(Arg, DIType(Ty));
if (DIType(Ty).isArtificial())
addType(Arg, Ty);
if (Ty.isArtificial())
addFlag(Arg, dwarf::DW_AT_artificial);
}
}