From: Matt Arsenault Date: Thu, 10 Sep 2015 21:51:15 +0000 (+0000) Subject: AMDGPU: Use StringRef value X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3a8d465ddd29ffa8feffcb123394e2157b07c3b3;p=oota-llvm.git AMDGPU: Use StringRef value git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp index 9ce6874cad3..ce42f6f7002 100644 --- a/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp +++ b/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp @@ -485,7 +485,7 @@ bool AMDGPUAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &End 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) {