[llvm] r220658 - Remove some unnecessary casts.
David Blaikie
dblaikie at gmail.com
Sun Oct 26 16:37:04 PDT 2014
Author: dblaikie
Date: Sun Oct 26 18:37:04 2014
New Revision: 220658
URL: http://llvm.org/viewvc/llvm-project?rev=220658&view=rev
Log:
Remove some unnecessary casts.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=220658&r1=220657&r2=220658&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Sun Oct 26 18:37:04 2014
@@ -1112,8 +1112,8 @@ void DwarfUnit::constructSubprogramArgum
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);
}
}
More information about the llvm-commits
mailing list