[PATCH] D133492: [AMDGPU][MC][GFX11][NFC] Correct VOPD parsing
Dmitry Preobrazhensky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 9 03:03:49 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6b79610fd59d: [AMDGPU][MC][GFX11][NFC] Correct VOPD parsing (authored by dp).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133492/new/
https://reviews.llvm.org/D133492
Files:
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
Index: llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+++ llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
@@ -8378,9 +8378,9 @@
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");
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133492.459002.patch
Type: text/x-patch
Size: 783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220909/8ba7ae34/attachment.bin>
More information about the llvm-commits
mailing list