projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3b262
)
[TableGen] Fix error message that called Record::getName on a possibly anonymous...
author
Craig Topper
<craig.topper@sifive.com>
Tue, 7 Mar 2023 03:56:43 +0000
(19:56 -0800)
committer
Craig Topper
<craig.topper@sifive.com>
Tue, 7 Mar 2023 03:58:47 +0000
(19:58 -0800)
Record::getName only works for named records. Use getNameInitAsString
to handle anonymous records without crashing.
llvm/lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/TableGen/Record.cpp
b/llvm/lib/TableGen/Record.cpp
index
654857f
..
363bf7b
100644
(file)
--- a/
llvm/lib/TableGen/Record.cpp
+++ b/
llvm/lib/TableGen/Record.cpp
@@
-2259,7
+2259,7
@@
Init *CondOpInit::Fold(Record *CurRec) const {
}
PrintFatalError(CurRec->getLoc(),
- CurRec->getName() +
+ CurRec->getName
InitAsString
() +
" does not have any true condition in:" +
this->getAsString());
return nullptr;