summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-10-04 15:27:53 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-10-04 15:27:53 +0000
commit877b6d43d4183e7b4bb6c99038c0d2b184dd3b3c (patch)
tree042126db4281bec5b96440a627ea21061e2877db /utils
parentf98742565765a10558824ea45f0d9a70843ed0d9 (diff)
downloadllvm-877b6d43d4183e7b4bb6c99038c0d2b184dd3b3c.tar.gz
llvm-877b6d43d4183e7b4bb6c99038c0d2b184dd3b3c.tar.bz2
llvm-877b6d43d4183e7b4bb6c99038c0d2b184dd3b3c.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeGenRegisters.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenRegisters.cpp b/utils/TableGen/CodeGenRegisters.cpp
index a5bb5c2e63..4c8d360875 100644
--- a/utils/TableGen/CodeGenRegisters.cpp
+++ b/utils/TableGen/CodeGenRegisters.cpp
@@ -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;
}