From: Dan Gohman Date: Fri, 20 Aug 2010 22:39:57 +0000 (+0000) Subject: CreateTemporaryType doesn't needs its Context argument. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=869683782e0da7a5fb7aca04b681a31d1b7ae355;p=clang CreateTemporaryType doesn't needs its Context argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111688 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 1e287172cf..b9b970a3cf 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -868,8 +868,7 @@ llvm::DIType CGDebugInfo::CreateType(const RecordType *Ty, // A RD->getName() is not unique. However, the debug info descriptors // are uniqued so use type name to ensure uniquness. - llvm::DIType FwdDecl = - DebugFactory.CreateTemporaryType(FDContext); + llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(); llvm::MDNode *MN = FwdDecl; llvm::TrackingVH FwdDeclNode = MN; @@ -986,7 +985,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, // its members. Finally, we create a descriptor for the complete type (which // may refer to the forward decl if the struct is recursive) and replace all // uses of the forward declaration with the final definition. - llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(Unit); + llvm::DIType FwdDecl = DebugFactory.CreateTemporaryType(); // If this is just a forward declaration, return it. if (ID->isForwardDecl())