forked from OSchip/llvm-project
Fix Name Access
Ask for the Record name as a string explicitly to avoid a possible assert. llvm-svn: 142506
This commit is contained in:
parent
98be78aeea
commit
077d84e6f3
|
@ -1789,7 +1789,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const Record &R) {
|
|||
if (!SC.empty()) {
|
||||
OS << "\t//";
|
||||
for (unsigned i = 0, e = SC.size(); i != e; ++i)
|
||||
OS << " " << SC[i]->getName();
|
||||
OS << " " << SC[i]->getNameInitAsString();
|
||||
}
|
||||
OS << "\n";
|
||||
|
||||
|
|
Loading…
Reference in New Issue