llvm.org GIT mirror llvm / 27b83d4
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 Daniel Dunbar 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
14821482 MatchableInfo &II = **it;
14831483
14841484 // Check if we have a custom match function.
1485 StringRef AsmMatchConverter = II.getResultInst()->TheDef->getValueAsString(
1486 "AsmMatchConverter");
1485 std::string AsmMatchConverter =
1486 II.getResultInst()->TheDef->getValueAsString("AsmMatchConverter");
14871487 if (!AsmMatchConverter.empty()) {
1488 std::string Signature = "ConvertCustom_" + AsmMatchConverter.str();
1488 std::string Signature = "ConvertCustom_" + AsmMatchConverter;
14891489 II.ConversionFnKind = Signature;
14901490
14911491 // Check if we have already generated this signature.