mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +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;
|
||||
|
||||
// Check if we have a custom match function.
|
||||
StringRef AsmMatchConverter = II.getResultInst()->TheDef->getValueAsString(
|
||||
"AsmMatchConverter");
|
||||
std::string AsmMatchConverter =
|
||||
II.getResultInst()->TheDef->getValueAsString("AsmMatchConverter");
|
||||
if (!AsmMatchConverter.empty()) {
|
||||
std::string Signature = "ConvertCustom_" + AsmMatchConverter.str();
|
||||
std::string Signature = "ConvertCustom_" + AsmMatchConverter;
|
||||
II.ConversionFnKind = Signature;
|
||||
|
||||
// Check if we have already generated this signature.
|
||||
|
Loading…
x
Reference in New Issue
Block a user