Reuse a local variable. NFC.

llvm-svn: 295527
This commit is contained in:
Vedant Kumar 2017-02-18 01:50:11 +00:00
parent 3720124545
commit cab432d97d
1 changed files with 3 additions and 5 deletions

View File

@ -627,11 +627,9 @@ void CodeGenPGO::assignRegionCounters(GlobalDecl GD, llvm::Function *Fn) {
// If so, instrument only base variant, others are implemented by delegation
// to the base one, it would be counted twice otherwise.
if (CGM.getTarget().getCXXABI().hasConstructorVariants() &&
((isa<CXXConstructorDecl>(GD.getDecl()) &&
GD.getCtorType() != Ctor_Base) ||
(isa<CXXDestructorDecl>(GD.getDecl()) &&
GD.getDtorType() != Dtor_Base))) {
return;
((isa<CXXConstructorDecl>(D) && GD.getCtorType() != Ctor_Base) ||
(isa<CXXDestructorDecl>(D) && GD.getDtorType() != Dtor_Base))) {
return;
}
CGM.ClearUnusedCoverageMapping(D);
setFuncName(Fn);