[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 3 17:01:15 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.96 -> 1.97
---
Log message:
Fix a minor bug handling incomplete programs
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.96 llvm/lib/Analysis/DataStructure/Local.cpp:1.97
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.96 Tue Mar 2 14:46:18 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp Wed Mar 3 17:00:19 2004
@@ -185,7 +185,7 @@
for (DSScalarMap::global_iterator I = ScalarMap.global_begin();
I != ScalarMap.global_end(); ++I)
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
- if (GV->isConstant())
+ if (!GV->isExternal() && GV->isConstant())
RC.merge(ScalarMap[GV], GG->ScalarMap[GV]);
}
More information about the llvm-commits
mailing list