r200891 - Fix Werror introduced at r200874.

Manman Ren manman.ren at gmail.com
Wed Feb 5 16:03:21 PST 2014


Author: mren
Date: Wed Feb  5 18:03:20 2014
New Revision: 200891

URL: http://llvm.org/viewvc/llvm-project?rev=200891&view=rev
Log:
Fix Werror introduced at r200874.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.cpp?rev=200891&r1=200890&r2=200891&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.cpp Wed Feb  5 18:03:20 2014
@@ -592,7 +592,7 @@ void CodeGenFunction::StartFunction(Glob
 
   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);





More information about the cfe-commits mailing list