diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-26 16:23:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-26 16:23:03 +0000 |
commit | 48b2f6ba2e3a9649b2122f3d365bcb74e0ba2e16 (patch) | |
tree | 938f155a6a32a3be361d038cb37794644a1ee526 /lib | |
parent | b2fc1fcb90cc3d29b792c188121e28f25f4a68ec (diff) | |
download | external_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.cpp | 2 |
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!"); |