[cfe-commits] r164726 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Bill Wendling isanbard at gmail.com
Wed Sep 26 14:59:46 PDT 2012


Author: void
Date: Wed Sep 26 16:59:46 2012
New Revision: 164726

URL: http://llvm.org/viewvc/llvm-project?rev=164726&view=rev
Log:
Update to new function attribute querying syntax.

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=164726&r1=164725&r2=164726&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Sep 26 16:59:46 2012
@@ -572,7 +572,7 @@
 
   // (noinline wins over always_inline, and we can't specify both in IR)
   if ((D->hasAttr<AlwaysInlineAttr>() || D->hasAttr<ForceInlineAttr>()) &&
-      !F->hasFnAttr(llvm::Attribute::NoInline))
+      !F->getFnAttributes().hasNoInlineAttr())
     F->addFnAttr(llvm::Attribute::AlwaysInline);
 
   // FIXME: Communicate hot and cold attributes to LLVM more directly.





More information about the cfe-commits mailing list