llvm.org GIT mirror llvm / 6908435
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 Tim Northover 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
602602 << " switch(AltIdx) {\n"
603603 << " default: llvm_unreachable(\"Invalid register alt name index!\");\n";
604604 for (unsigned i = 0, e = AltNameIndices.size(); i < e; ++i) {
605 StringRef Namespace = AltNameIndices[1]->getValueAsString("Namespace");
606 StringRef AltName(AltNameIndices[i]->getName());
605 std::string Namespace = AltNameIndices[1]->getValueAsString("Namespace");
606 std::string AltName(AltNameIndices[i]->getName());
607607 O << " case " << Namespace << "::" << AltName
608608 << ":\n"
609609 << " AsmStrs = AsmStrs" << AltName << ";\n"