[PATCH] D106635: [AArch64][AsmParser] NFC: Parser.getTok().getLoc() -> getLoc()

Tomas Matheson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 23 04:47:59 PDT 2021


tmatheson added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp:3164
   if (!MCE) {
-    Error(E, "expected constant '#imm' after shift specifier");
+    Error(getLoc(), "expected constant '#imm' after shift specifier");
     return MatchOperand_ParseFail;
----------------
Does `parseExpression` above update the current token and hence the location?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106635/new/

https://reviews.llvm.org/D106635



More information about the llvm-commits mailing list