projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f8d3c7
)
Fix Record Name Reference
author
David Greene
<greened@obbligato.org>
Sat, 28 Jan 2012 00:03:24 +0000
(
00:03
+0000)
committer
David Greene
<greened@obbligato.org>
Sat, 28 Jan 2012 00:03:24 +0000
(
00:03
+0000)
Get the record name though the init to avoid an assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149153
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/TableGen/TGParser.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/TGParser.cpp
b/lib/TableGen/TGParser.cpp
index 13a752e3a2d301f8af10c22544b5c14289f7f0fa..0f64f4bcdac33c34698ffff37722ab2fd26282d5 100644
(file)
--- a/
lib/TableGen/TGParser.cpp
+++ b/
lib/TableGen/TGParser.cpp
@@
-1775,7
+1775,7
@@
bool TGParser::ParseDef(MultiClass *CurMultiClass) {
// Top-level def definition.
// Ensure redefinition doesn't happen.
- if (Records.getDef(CurRec->getName())) {
+ if (Records.getDef(CurRec->getName
InitAsString
())) {
Error(DefLoc, "def '" + CurRec->getNameInitAsString()
+ "' already defined");
return true;