mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 02:59:15 +00:00
tlbgen/MC: StringRef's to temporary objects considered harmful.
llvm-svn: 128735
This commit is contained in:
parent
65fe34ae00
commit
7e8cb9fc5e
@ -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…
Reference in New Issue
Block a user