mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Fix remaining StringRef abuse.
This should fix the valgrind buildbot failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb260b2527
commit
b9e1a33941
@ -1442,8 +1442,8 @@ AArch64AsmParser::IdentifyRegister(unsigned &RegNum, SMLoc &RegEndLoc,
|
||||
// gives us a permanent string to use in the token (a pointer into LowerReg
|
||||
// would go out of scope when we return).
|
||||
LayoutLoc = SMLoc::getFromPointer(S.getPointer() + DotPos + 1);
|
||||
Layout = LowerReg.substr(DotPos, StringRef::npos);
|
||||
Layout = StringSwitch<const char *>(Layout)
|
||||
std::string LayoutText = LowerReg.substr(DotPos, StringRef::npos);
|
||||
Layout = StringSwitch<const char *>(LayoutText)
|
||||
.Case(".d", ".d").Case(".1d", ".1d").Case(".2d", ".2d")
|
||||
.Case(".s", ".s").Case(".2s", ".2s").Case(".4s", ".4s")
|
||||
.Case(".h", ".h").Case(".4h", ".4h").Case(".8h", ".8h")
|
||||
|
Loading…
x
Reference in New Issue
Block a user