diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-05-03 18:13:43 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-05-03 18:13:43 +0000 |
commit | c0042d804c8af643671fac709659945a3285dbbf (patch) | |
tree | f042fbd632c3b30dcb105818dd01bf13b832b3a9 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 1619a5041ccaaf811ec28bf69995f737221c1267 (diff) | |
download | bcm5719-llvm-c0042d804c8af643671fac709659945a3285dbbf.tar.gz bcm5719-llvm-c0042d804c8af643671fac709659945a3285dbbf.zip |
PR4133: fix always_inline implementation to be consistent with gcc.
llvm-svn: 70786
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 4e58d093600..8de6ef54170 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -231,8 +231,7 @@ void CodeGenModule::EmitAnnotations() { static CodeGenModule::GVALinkage GetLinkageForFunction(const FunctionDecl *FD, const LangOptions &Features) { // "static" and attr(always_inline) functions get internal linkage. - if (FD->getStorageClass() == FunctionDecl::Static || - FD->hasAttr<AlwaysInlineAttr>()) + if (FD->getStorageClass() == FunctionDecl::Static) return CodeGenModule::GVA_Internal; if (!FD->isInline()) |