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:
7b5805d
)
Use the AttributeSet query method instead of the Attribute method.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 18 Jan 2013 21:26:07 +0000
(21:26 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 18 Jan 2013 21:26:07 +0000
(21:26 +0000)
llvm-svn: 172849
clang/lib/CodeGen/CodeGenModule.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/CodeGen/CodeGenModule.cpp
b/clang/lib/CodeGen/CodeGenModule.cpp
index
9faba75
..
28f5974
100644
(file)
--- a/
clang/lib/CodeGen/CodeGenModule.cpp
+++ b/
clang/lib/CodeGen/CodeGenModule.cpp
@@
-1967,7
+1967,7
@@
static void replaceUsesOfNonProtoConstant(llvm::Constant *old,
continue;
llvm::Attribute fnAttrs = oldAttrs.getFnAttributes();
- if (
fnAttrs.hasAttributes(
))
+ if (
oldAttrs.hasAttributes(llvm::AttributeSet::FunctionIndex
))
newAttrs.push_back(llvm::
AttributeWithIndex::get(llvm::AttributeSet::FunctionIndex,
fnAttrs));