From df1cca3a2463fdbad0606eb7626e75b3deb6264f Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Sun, 26 Oct 2014 23:37:04 +0000 Subject: [PATCH] Remove some unnecessary casts. llvm-svn: 220658 --- llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index cf4679fdac31..65ec21c92f3d 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -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); } }