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:
f7931b7
)
Fix Name Check
author
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:02:47 +0000
(13:02 +0000)
committer
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:02:47 +0000
(13:02 +0000)
Record names may not be fully resolved at this point so ask for the
record name as a string explicitly. This avoids a potential assert.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142502
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/TableGen/Record.h
patch
|
blob
|
history
diff --git
a/include/llvm/TableGen/Record.h
b/include/llvm/TableGen/Record.h
index 55fe717087a335e319372dde4c4c390708456f40..206718ce95a1b3235c7ce11636a1f17efb872166 100644
(file)
--- a/
include/llvm/TableGen/Record.h
+++ b/
include/llvm/TableGen/Record.h
@@
-1490,7
+1490,7
@@
public:
bool isSubClassOf(StringRef Name) const {
for (unsigned i = 0, e = SuperClasses.size(); i != e; ++i)
- if (SuperClasses[i]->getName() == Name)
+ if (SuperClasses[i]->getName
InitAsString
() == Name)
return true;
return false;
}