[llvm] 6b79610 - [AMDGPU][MC][GFX11][NFC] Correct VOPD parsing
Dmitry Preobrazhensky via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 9 03:03:49 PDT 2022
Author: Dmitry Preobrazhensky
Date: 2022-09-09T13:03:29+03:00
New Revision: 6b79610fd59d093eb2dd4e4b2aa4a4462a591f5b
URL: https://github.com/llvm/llvm-project/commit/6b79610fd59d093eb2dd4e4b2aa4a4462a591f5b
DIFF: https://github.com/llvm/llvm-project/commit/6b79610fd59d093eb2dd4e4b2aa4a4462a591f5b.diff
LOG: [AMDGPU][MC][GFX11][NFC] Correct VOPD parsing
Differential Revision: https://reviews.llvm.org/D133492
Added:
Modified:
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
index df0a53cb54850..43ca61fa8dd4b 100644
--- a/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ b/llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -8378,9 +8378,9 @@ OperandMatchResultTy AMDGPUAsmParser::parseVOPD(OperandVector &Operands) {
lex();
lex();
Operands.push_back(AMDGPUOperand::CreateToken(this, "::", S));
- const MCExpr *Expr;
- if (isToken(AsmToken::Identifier) && !Parser.parseExpression(Expr)) {
- Operands.push_back(AMDGPUOperand::CreateExpr(this, Expr, S));
+ StringRef OpYName;
+ if (isToken(AsmToken::Identifier) && !Parser.parseIdentifier(OpYName)) {
+ Operands.push_back(AMDGPUOperand::CreateToken(this, OpYName, S));
return MatchOperand_Success;
}
Error(S, "invalid VOPD :: usage");
More information about the llvm-commits
mailing list