]> granicus.if.org Git - clang/commitdiff
Remove unnecessary explicit cast.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 22:42:12 +0000 (22:42 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 22:42:12 +0000 (22:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188500 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 049375f5d75f63bc2144f69ec334ad8b818bbde7..5f56e1695917b1eaa5961b1d0815e533e13c246b 100644 (file)
@@ -2237,7 +2237,7 @@ llvm::DIType CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
       RealDecl.setTypeArray(llvm::DIArray(),
                             CollectCXXTemplateParams(TSpecial, DefUnit));
   }
-  return llvm::DIType(RealDecl);
+  return RealDecl;
 }
 
 /// CreateMemberType - Create new member and increase Offset by FType's size.