[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 7 21:53:01 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.169 -> 1.170
---
Log message:
Fix a bug handling globals that are constants, but are still external
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.169 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.170
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.169 Thu Mar 4 13:47:04 2004
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Sun Mar 7 21:52:24 2004
@@ -1441,7 +1441,7 @@
for (DSScalarMap::global_iterator I = ScalarMap.global_begin(),
E = ScalarMap.global_end(); I != E; ++I)
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
- if (!GV->isConstant())
+ if (!GV->isConstant() || !GV->hasInitializer())
markIncompleteNode(ScalarMap[GV].getNode());
}
More information about the llvm-commits
mailing list