aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-26 16:23:03 +0000
committerChris Lattner <sabre@nondot.org>2004-10-26 16:23:03 +0000
commit48b2f6ba2e3a9649b2122f3d365bcb74e0ba2e16 (patch)
tree938f155a6a32a3be361d038cb37794644a1ee526 /lib
parentb2fc1fcb90cc3d29b792c188121e28f25f4a68ec (diff)
downloadexternal_llvm-48b2f6ba2e3a9649b2122f3d365bcb74e0ba2e16.zip
external_llvm-48b2f6ba2e3a9649b2122f3d365bcb74e0ba2e16.tar.gz
external_llvm-48b2f6ba2e3a9649b2122f3d365bcb74e0ba2e16.tar.bz2
add support for UndefValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/DataStructure/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/Local.cpp b/lib/Analysis/DataStructure/Local.cpp
index 473fb63..9036ecd 100644
--- a/lib/Analysis/DataStructure/Local.cpp
+++ b/lib/Analysis/DataStructure/Local.cpp
@@ -1014,7 +1014,7 @@ void GraphBuilder::MergeConstantInitIntoNode(DSNodeHandle &NH, Constant *C) {
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!");