diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 4171e22302d..bb7065f81db 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