diff options
Diffstat (limited to 'lib/Transforms/IPO/InlineSimple.cpp')
-rw-r--r-- | lib/Transforms/IPO/InlineSimple.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp index b7cefacaf3..bd4fd26a9d 100644 --- a/lib/Transforms/IPO/InlineSimple.cpp +++ b/lib/Transforms/IPO/InlineSimple.cpp @@ -70,6 +70,7 @@ bool opt::InlineMethod(BasicBlock::iterator CIIt) { CallInst *CI = (CallInst*)*CIIt; const Method *CalledMeth = CI->getCalledMethod(); + if (CalledMeth->isExternal()) return false; // Can't inline external method! Method *CurrentMeth = CI->getParent()->getParent(); //cerr << "Inlining " << CalledMeth->getName() << " into " |