mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
add support for UndefValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b2fc1fcb90
commit
48b2f6ba2e
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user