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)
llvm-svn: 188500

clang/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.