Handle the case IDVal is an empty string.
This bug was uncovered by a LLVM MC Assembler Protocol Buffer Fuzzer for the RISC-V assembly language.
Differential D50808
[MC, RISCV] Fixed StringRef Assertion `Index < Length && "Invalid index!"' apazos on Aug 15 2018, 1:48 PM. Authored by
Details Handle the case IDVal is an empty string. This bug was uncovered by a LLVM MC Assembler Protocol Buffer Fuzzer for the RISC-V assembly language.
Diff Detail Event Timeline
Comment Actions lgtm
|
I'd probably spell it IDVal.startswith(".") for readability.