From eebc8310220fc2cf11c5b54e0e9a98d158e96e3d Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Thu, 6 Feb 2014 00:03:20 +0000 Subject: [PATCH] Fix Werror introduced at r200874. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200891 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.40.0