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 | 63ffde573e14bb419b66d8121217334b926cd014 (patch) | |
tree | e2b256b81eb31e4f5fc0abffa2ddc178bf903655 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7b5805d0d1cba7d5a0f0a3ca7867f63cbde5cda8 (diff) | |
download | llvm-63ffde573e14bb419b66d8121217334b926cd014.zip llvm-63ffde573e14bb419b66d8121217334b926cd014.tar.gz llvm-63ffde573e14bb419b66d8121217334b926cd014.tar.bz2 |
Use the AttributeSet query method instead of the Attribute method.
llvm-svn: 172849
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9faba75..28f5974 100644 --- 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)); |