mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
If adding a link to a collapsed, node, ignore offset.
Fixes 2006-03-27-LinkedCollapsed.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24cc46ef6c
commit
79acb69a6f
@ -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…
Reference in New Issue
Block a user