]> granicus.if.org Git - clang/commitdiff
Fix Werror introduced at r200874.
authorManman Ren <manman.ren@gmail.com>
Thu, 6 Feb 2014 00:03:20 +0000 (00:03 +0000)
committerManman Ren <manman.ren@gmail.com>
Thu, 6 Feb 2014 00:03:20 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200891 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.cpp

index c0b4d8926a92a0f800d74dbbff0f2f509aad6fde..ffdbc99c614c681189d46ee0cf03f7b9ba9a91ab 100644 (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);