mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Don't capture a temporary std::string in a StringRef.
This fixes the breakages in llvm-tblgen. llvm-svn: 304123
This commit is contained in:
parent
2b08c71118
commit
2dbeb58c9c
@ -285,7 +285,7 @@ getMemOperandSize(const Record *MemRec, const bool IntrinsicSensitive = false) {
|
||||
(MemRec->getName() == "sdmem" || MemRec->getName() == "ssmem"))
|
||||
return 128;
|
||||
|
||||
StringRef Name =
|
||||
std::string Name =
|
||||
MemRec->getValueAsDef("ParserMatchClass")->getValueAsString("Name");
|
||||
if (Name == "Mem8")
|
||||
return 8;
|
||||
|
Loading…
x
Reference in New Issue
Block a user