diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-05 22:04:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-05 22:04:07 +0000 |
commit | deb8712b49bde50cd56e14c0f202bf86306a54b9 (patch) | |
tree | c43bd0f29001125d9e57887669661ea371fdba99 | |
parent | a5f2905c71ea55ee28f9002eed974ead81dfc6f5 (diff) | |
download | external_llvm-deb8712b49bde50cd56e14c0f202bf86306a54b9.zip external_llvm-deb8712b49bde50cd56e14c0f202bf86306a54b9.tar.gz external_llvm-deb8712b49bde50cd56e14c0f202bf86306a54b9.tar.bz2 |
Fix a minor bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12169 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DataStructure/CompleteBottomUp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/CompleteBottomUp.cpp b/lib/Analysis/DataStructure/CompleteBottomUp.cpp index 95c9d3c..87b96b2 100644 --- a/lib/Analysis/DataStructure/CompleteBottomUp.cpp +++ b/lib/Analysis/DataStructure/CompleteBottomUp.cpp @@ -71,7 +71,8 @@ bool CompleteBUDataStructures::run(Module &M) { unsigned NextID = 1; if (Function *Main = M.getMainFunction()) { - calculateSCCGraphs(getOrCreateGraph(*Main), Stack, NextID, ValMap); + if (!Main->isExternal()) + calculateSCCGraphs(getOrCreateGraph(*Main), Stack, NextID, ValMap); } else { std::cerr << "CBU-DSA: No 'main' function found!\n"; } |