[cfe-commits] r172849 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Bill Wendling
isanbard at gmail.com
Fri Jan 18 13:26:07 PST 2013
Author: void
Date: Fri Jan 18 15:26:07 2013
New Revision: 172849
URL: http://llvm.org/viewvc/llvm-project?rev=172849&view=rev
Log:
Use the AttributeSet query method instead of the Attribute method.
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=172849&r1=172848&r2=172849&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Fri Jan 18 15:26:07 2013
@@ -1967,7 +1967,7 @@
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));
More information about the cfe-commits
mailing list