From ec3bec0c7abd07bb9b372008e6870c44b1f5b318 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 27 Sep 2010 22:37:28 +0000 Subject: Kill FunctionDecl's IsCopyAssignment bit; it duplicated what could already be determined by isCopyAssignmentOperator(), and was set too late in the process for all clients to see the appropriate value. Cleanup only; no functionality change. llvm-svn: 114916 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f5ba76c..805b33e 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -867,7 +867,7 @@ CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef MangledName, DeferredDeclsToEmit.push_back(D); } } else if (const CXXMethodDecl *MD = dyn_cast(FD)) { - if (MD->isCopyAssignment() && MD->isImplicit()) { + if (MD->isImplicit() && MD->isCopyAssignmentOperator()) { assert(MD->isUsed() && "Sema doesn't consider CopyAssignment as used."); DeferredDeclsToEmit.push_back(D); } -- cgit v1.1