[llvm] r247344 - AMDGPU: Use StringRef value
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 14:51:15 PDT 2015
Author: arsenm
Date: Thu Sep 10 16:51:15 2015
New Revision: 247344
URL: http://llvm.org/viewvc/llvm-project?rev=247344&view=rev
Log:
AMDGPU: Use StringRef value
Modified:
llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp?rev=247344&r1=247343&r2=247344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp Thu Sep 10 16:51:15 2015
@@ -485,7 +485,7 @@ bool AMDGPUAsmParser::ParseRegister(unsi
const AsmToken Tok = Parser.getTok();
StartLoc = Tok.getLoc();
EndLoc = Tok.getEndLoc();
- const StringRef &RegName = Tok.getString();
+ StringRef RegName = Tok.getString();
RegNo = getRegForName(RegName);
if (RegNo) {
More information about the llvm-commits
mailing list