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));


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to