mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
TableGen: don't save a StringRef to a local std::string.
This caused a failure in some Windows builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
70c25ab51b
commit
6908435639
@ -603,8 +603,8 @@ void AsmWriterEmitter::EmitGetRegisterName(raw_ostream &O) {
|
||||
<< " switch(AltIdx) {\n"
|
||||
<< " default: llvm_unreachable(\"Invalid register alt name index!\");\n";
|
||||
for (unsigned i = 0, e = AltNameIndices.size(); i < e; ++i) {
|
||||
StringRef Namespace = AltNameIndices[1]->getValueAsString("Namespace");
|
||||
StringRef AltName(AltNameIndices[i]->getName());
|
||||
std::string Namespace = AltNameIndices[1]->getValueAsString("Namespace");
|
||||
std::string AltName(AltNameIndices[i]->getName());
|
||||
O << " case " << Namespace << "::" << AltName
|
||||
<< ":\n"
|
||||
<< " AsmStrs = AsmStrs" << AltName << ";\n"
|
||||
|
Loading…
Reference in New Issue
Block a user