[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 7 19:27:23 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
CompleteBottomUp.cpp updated: 1.9 -> 1.10
---
Log message:
Fix a minor bug
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp
diff -u llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.9 llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.10
--- llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp:1.9 Thu Mar 4 15:36:57 2004
+++ llvm/lib/Analysis/DataStructure/CompleteBottomUp.cpp Fri Mar 5 16:04:07 2004
@@ -71,7 +71,8 @@
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";
}
More information about the llvm-commits
mailing list