diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:26:07 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-18 21:26:07 +0000 |
commit | e67e4c93dfc9d68bff094c61b588f87456917f6f (patch) | |
tree | bd2f721b121bc36fdc471d43a265b96d4dd5a24d /lib/CodeGen/CodeGenModule.cpp | |
parent | f953276b6165dc7e8f4679cce4d0e7c649cd4232 (diff) |
Use the AttributeSet query method instead of the Attribute method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 9faba75433..28f59742ce 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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)); |