projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b22d7
)
We use the enums to query whether an Attributes object has that attribute. The
author
Bill Wendling
<isanbard@gmail.com>
Tue, 9 Oct 2012 07:45:26 +0000
(07:45 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Tue, 9 Oct 2012 07:45:26 +0000
(07:45 +0000)
opaque layer is responsible for knowing where that specific attribute is stored.
llvm-svn: 165489
clang/lib/CodeGen/CodeGenModule.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CodeGenModule.cpp
b/clang/lib/CodeGen/CodeGenModule.cpp
index
c6bb9f2
..
8c57f4c
100644
(file)
--- a/
clang/lib/CodeGen/CodeGenModule.cpp
+++ b/
clang/lib/CodeGen/CodeGenModule.cpp
@@
-578,7
+578,7
@@
void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
// (noinline wins over always_inline, and we can't specify both in IR)
if ((D->hasAttr<AlwaysInlineAttr>() || D->hasAttr<ForceInlineAttr>()) &&
- !F->getFnAttributes().has
NoInlineAttr(
))
+ !F->getFnAttributes().has
Attribute(llvm::Attributes::NoInline
))
F->addFnAttr(llvm::Attribute::AlwaysInline);
// FIXME: Communicate hot and cold attributes to LLVM more directly.