mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-10 02:29:32 +00:00
tlbgen/MC: StringRef's to temporary objects considered harmful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128735 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec30f6f5e5
commit
27b83d4ff2
@ -1483,10 +1483,10 @@ static void EmitConvertToMCInst(CodeGenTarget &Target, StringRef ClassName,
|
|||||||
MatchableInfo &II = **it;
|
MatchableInfo &II = **it;
|
||||||
|
|
||||||
// Check if we have a custom match function.
|
// Check if we have a custom match function.
|
||||||
StringRef AsmMatchConverter = II.getResultInst()->TheDef->getValueAsString(
|
std::string AsmMatchConverter =
|
||||||
"AsmMatchConverter");
|
II.getResultInst()->TheDef->getValueAsString("AsmMatchConverter");
|
||||||
if (!AsmMatchConverter.empty()) {
|
if (!AsmMatchConverter.empty()) {
|
||||||
std::string Signature = "ConvertCustom_" + AsmMatchConverter.str();
|
std::string Signature = "ConvertCustom_" + AsmMatchConverter;
|
||||||
II.ConversionFnKind = Signature;
|
II.ConversionFnKind = Signature;
|
||||||
|
|
||||||
// Check if we have already generated this signature.
|
// Check if we have already generated this signature.
|
||||||
|
Loading…
Reference in New Issue
Block a user