Fix Werror introduced at r200874.
llvm-svn: 200891
This commit is contained in:
@@ -592,7 +592,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD,
|
||||
|
||||
PGO.assignRegionCounters(GD);
|
||||
if (CGM.getPGOData()) {
|
||||
if (const Decl *D = GD.getDecl()) {
|
||||
if (D) {
|
||||
// Turn on InlineHint attribute for hot functions.
|
||||
if (CGM.getPGOData()->isHotFunction(CGM.getMangledName(GD)))
|
||||
Fn->addFnAttr(llvm::Attribute::InlineHint);
|
||||
|
||||
Reference in New Issue
Block a user