diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-03 18:46:35 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-03 18:46:35 +0000 |
commit | 5e060104628b5a5779fc910f6e2d5a15771fa15b (patch) | |
tree | 930f416ab3fd1a18f9e80496324dd77637a7b66c /lib | |
parent | 910c120a7c439ee3c6e9cd249ff0a05f0fdb6c98 (diff) | |
download | external_llvm-5e060104628b5a5779fc910f6e2d5a15771fa15b.zip external_llvm-5e060104628b5a5779fc910f6e2d5a15771fa15b.tar.gz external_llvm-5e060104628b5a5779fc910f6e2d5a15771fa15b.tar.bz2 |
Check noinline note and ignore other notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index 4171e22..bb7065f 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 |