diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index c0b4d8926a9..ffdbc99c614 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -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); |