From: Chris Lattner Date: Fri, 2 Dec 2005 19:00:22 +0000 (+0000) Subject: Revert my previous patch which broke due to lazy streaming of functions X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=52098898b463923a01a0bf3d18d6fb9f96c8d5ef;p=oota-llvm.git Revert my previous patch which broke due to lazy streaming of functions from .bc files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24575 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 93eb6fce5d1..c1b7478a376 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -85,7 +85,7 @@ int main(int argc, char **argv, char * const *envp) { // EnvVars to determine envp. // Function *Fn = MP->getModule()->getMainFunction(); - if (!Fn || Fn->isExternal()) { + if (!Fn) { std::cerr << "'main' function not found in module.\n"; return -1; }