diff options
author | Manman Ren <manman.ren@gmail.com> | 2014-02-06 00:03:20 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2014-02-06 00:03:20 +0000 |
commit | f9e58778bc78a4a4714de0e8e66f70614ea28948 (patch) | |
tree | c4cd92b4689c5a01d01a8965ef6c1ed1244a9eab /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 4998280fdfafacf3eec44b19de357d2b7ab437fe (diff) | |
download | bcm5719-llvm-f9e58778bc78a4a4714de0e8e66f70614ea28948.tar.gz bcm5719-llvm-f9e58778bc78a4a4714de0e8e66f70614ea28948.zip |
Fix Werror introduced at r200874.
llvm-svn: 200891
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index c0b4d8926a9..ffdbc99c614 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/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); |