summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index c0b4d8926a..ffdbc99c61 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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);