aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-01 20:23:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-01 20:23:52 +0000
commit27b83d4ff2264d9a0e2367d92543efe4c0148931 (patch)
tree6cb8fe598bc5439b0fc287ec14f2614f680043c6 /utils/TableGen
parentec30f6f5e5e53f384f3cbdade08ba654ef3680c7 (diff)
downloadexternal_llvm-27b83d4ff2264d9a0e2367d92543efe4c0148931.zip
external_llvm-27b83d4ff2264d9a0e2367d92543efe4c0148931.tar.gz
external_llvm-27b83d4ff2264d9a0e2367d92543efe4c0148931.tar.bz2
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
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/AsmMatcherEmitter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp
index e3def41..369ec90 100644
--- a/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/utils/TableGen/AsmMatcherEmitter.cpp
@@ -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.