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
This commit is contained in:
@@ -867,7 +867,7 @@ CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef MangledName,
|
||||
DeferredDeclsToEmit.push_back(D);
|
||||
}
|
||||
} else if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user