mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 04:33:05 +00:00
TableGen: Don't add synthetic Records to the RecordKeeper.
The RecordKeeper could be shared by multiple target instances, causing duplicate record errors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f987425657
commit
877b6d43d4
@ -503,7 +503,6 @@ Record *CodeGenRegBank::getCompositeSubRegIndex(Record *A, Record *B,
|
||||
// None exists, synthesize one.
|
||||
std::string Name = A->getName() + "_then_" + B->getName();
|
||||
Comp = new Record(Name, SMLoc(), Records);
|
||||
Records.addDef(Comp);
|
||||
SubRegIndices.push_back(Comp);
|
||||
return Comp;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user