[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 26 09:23:17 PDT 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.114 -> 1.115
---
Log message:
add support for UndefValue
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.114 llvm/lib/Analysis/DataStructure/Local.cpp:1.115
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.114 Sat Oct 16 13:16:01 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp Tue Oct 26 11:23:03 2004
@@ -1014,7 +1014,7 @@
DSNodeHandle NewNH(NH.getNode(), NH.getOffset()+SL->MemberOffsets[i]);
MergeConstantInitIntoNode(NewNH, cast<Constant>(CS->getOperand(i)));
}
- } else if (ConstantAggregateZero *CAZ = dyn_cast<ConstantAggregateZero>(C)) {
+ } else if (isa<ConstantAggregateZero>(C) || isa<UndefValue>(C)) {
// Noop
} else {
assert(0 && "Unknown constant type!");
More information about the llvm-commits
mailing list