[PATCH] D98124: [RISCV] Clean up parsing fence arguments
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 7 10:18:23 PST 2021
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1688
+ SMLoc S = getLoc();
+ SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
+ const MCExpr *Res;
----------------
I see this SMLoc::getFromPointer(S.getPointer() - 1) repeated a lot in the assembly parser. Is this doing something I don't understand and setting a valid end location or are we just frequently setting an invalid end location?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98124/new/
https://reviews.llvm.org/D98124
More information about the llvm-commits
mailing list