summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2014-02-06 00:03:20 +0000
committerManman Ren <manman.ren@gmail.com>2014-02-06 00:03:20 +0000
commiteebc8310220fc2cf11c5b54e0e9a98d158e96e3d (patch)
tree8eda42034f354731c09a094e069427e86c5ec790 /lib/CodeGen/CodeGenFunction.cpp
parent3ec05d9af2fb5631f0c83f62d0b833c71ddf8c25 (diff)
downloadclang-eebc8310220fc2cf11c5b54e0e9a98d158e96e3d.tar.gz
clang-eebc8310220fc2cf11c5b54e0e9a98d158e96e3d.tar.bz2
clang-eebc8310220fc2cf11c5b54e0e9a98d158e96e3d.tar.xz
Fix Werror introduced at r200874.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200891 91177308-0d34-0410-b5e6-96231b3b80d8
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);