[llvm] r194981 - Remove unnecessary temporary construction.
David Blaikie
dblaikie at gmail.com
Sun Nov 17 13:59:31 PST 2013
Author: dblaikie
Date: Sun Nov 17 15:59:31 2013
New Revision: 194981
URL: http://llvm.org/viewvc/llvm-project?rev=194981&view=rev
Log:
Remove unnecessary temporary construction.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=194981&r1=194980&r2=194981&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Sun Nov 17 15:59:31 2013
@@ -1247,7 +1247,7 @@ void CompileUnit::constructTypeDIE(DIE &
addFlag(&Buffer, dwarf::DW_AT_APPLE_block);
DICompositeType ContainingType(resolve(CTy.getContainingType()));
- if (DIDescriptor(ContainingType).isCompositeType())
+ if (ContainingType.isCompositeType())
addDIEEntry(&Buffer, dwarf::DW_AT_containing_type,
getOrCreateTypeDIE(DIType(ContainingType)));
More information about the llvm-commits
mailing list