From 5e060104628b5a5779fc910f6e2d5a15771fa15b Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Wed, 3 Sep 2008 18:46:35 +0000 Subject: Check noinline note and ignore other notes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55711 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/IPO/InlineSimple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Transforms/IPO') diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 4171e22302..bb7065f81d 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -65,7 +65,7 @@ bool SimpleInliner::doInitialization(CallGraph &CG) { for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I) - if (!I->isDeclaration() && I->getNotes() == FN_NOTE_NoInline) + if (!I->isDeclaration() && I->getNotes() & FN_NOTE_NoInline) NeverInline.insert(I); // Get llvm.noinline -- cgit v1.2.3