aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-11-17 21:59:31 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-11-17 21:59:31 +0000
commit17a88a7e8b8ad2f0766c4099d09cd29229296352 (patch)
tree8e42b823e276ba84de686c030b61fc9c499f4062 /lib/CodeGen
parentfbf70b383d170e00d5104b22f1bda604214d6c30 (diff)
downloadexternal_llvm-17a88a7e8b8ad2f0766c4099d09cd29229296352.zip
external_llvm-17a88a7e8b8ad2f0766c4099d09cd29229296352.tar.gz
external_llvm-17a88a7e8b8ad2f0766c4099d09cd29229296352.tar.bz2
Remove unnecessary temporary construction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
index 14cf245..db77a3f 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
@@ -1247,7 +1247,7 @@ void CompileUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
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)));