Remove some unnecessary casts.
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 26 Oct 2014 23:37:04 +0000 (23:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 26 Oct 2014 23:37:04 +0000 (23:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index cf4679f..65ec21c 100644 (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);
     }
   }