mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
If adding a link to a collapsed, node, ignore offset.
Fixes 2006-03-27-LinkedCollapsed.ll llvm-svn: 27194
This commit is contained in:
parent
d02894f466
commit
4130ea834c
@ -701,6 +701,9 @@ bool DSNode::mergeTypeInfo(const Type *NewTy, unsigned Offset,
|
||||
void DSNode::addEdgeTo(unsigned Offset, const DSNodeHandle &NH) {
|
||||
if (NH.isNull()) return; // Nothing to do
|
||||
|
||||
if (isNodeCompletelyFolded())
|
||||
Offset = 0;
|
||||
|
||||
DSNodeHandle &ExistingEdge = getLink(Offset);
|
||||
if (!ExistingEdge.isNull()) {
|
||||
// Merge the two nodes...
|
||||
|
Loading…
x
Reference in New Issue
Block a user