Fix Werror introduced at r200874.

llvm-svn: 200891
This commit is contained in:
Manman Ren
2014-02-06 00:03:20 +00:00
parent 4998280fdf
commit f9e58778bc

View File

@@ -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);