diff options
| author | Craig Topper <craig.topper@sifive.com> | 2020-12-08 10:30:06 -0800 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2020-12-08 11:25:39 -0800 |
| commit | 88e58939dcea54d59a77277d420a014dc90b06e7 (patch) | |
| tree | bf98a0c10c59ce0ef47ff4c33fab2e2a0fd4795a /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | fc750f609dfb2fd51b6810cc55058568dfe4b3a9 (diff) | |
| download | llvm-88e58939dcea54d59a77277d420a014dc90b06e7.zip llvm-88e58939dcea54d59a77277d420a014dc90b06e7.tar.gz llvm-88e58939dcea54d59a77277d420a014dc90b06e7.tar.bz2 | |
[RISCV] When parsing vsetvli in the assembler, use StringRef::getAsInteger instead of APInt's string constructor
APInt's string constructor asserts on error. Since this is the parser and we don't yet know if the string is a valid integer we shouldn't use that.
Instead use StringRef::getAsInteger which returns a bool to indicate success or failure.
Since we no longer need APInt, use 'unsigned' instead.
Differential Revision: https://reviews.llvm.org/D92801
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
