mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 12:33:17 +00:00
Check noinline note and ignore other notes.
llvm-svn: 55711
This commit is contained in:
parent
653bcea20d
commit
dae7f0b9d7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user