[PATCH] D128644: [RISCV] Fix the problem of parsing long version numbers
Shao-Ce SUN via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 27 20:48:24 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1919adb19b4a: [RISCV] Fix the problem of parsing long version numbers (authored by sunshaoce).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128644/new/
https://reviews.llvm.org/D128644
Files:
llvm/lib/Support/RISCVISAInfo.cpp
Index: llvm/lib/Support/RISCVISAInfo.cpp
===================================================================
--- llvm/lib/Support/RISCVISAInfo.cpp
+++ llvm/lib/Support/RISCVISAInfo.cpp
@@ -348,7 +348,7 @@
if (!MajorStr.empty() && In.consume_front("p")) {
MinorStr = In.take_while(isDigit);
- In = In.substr(MajorStr.size() + 1);
+ In = In.substr(MajorStr.size() + MinorStr.size() - 1);
// Expected 'p' to be followed by minor version number.
if (MinorStr.empty()) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128644.440460.patch
Type: text/x-patch
Size: 494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220628/18817f4e/attachment.bin>
More information about the llvm-commits
mailing list