diff options
author | Jim Lin <jim@andestech.com> | 2023-07-14 14:47:58 +0800 |
---|---|---|
committer | Jim Lin <jim@andestech.com> | 2023-07-14 16:09:11 +0800 |
commit | 8fe0449ac99087c74f785ddbdd4fbba65b396b3b (patch) | |
tree | 8c92b7c2cd377c51383a5f4633004d95f669f163 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 7a328cf539b38484218a0eb902611c69cfba7981 (diff) | |
download | llvm-8fe0449ac99087c74f785ddbdd4fbba65b396b3b.zip llvm-8fe0449ac99087c74f785ddbdd4fbba65b396b3b.tar.gz llvm-8fe0449ac99087c74f785ddbdd4fbba65b396b3b.tar.bz2 |
[RISCV] Fix required features checking with empty string
In our downstream, we define some intrinsics that don't require any
extra extension enabled. Such as
TARGET_BUILTIN(__builtin_riscv_xxx, "LiLi", "nc", "")
But `split` function's `KeepEmpty` argument is True. Got the error message
error: builtin requires at least one of the following extensions support to be enabled : ''
when we use our customized intrinsic.
Reviewed By: craig.topper, wangpc
Differential Revision: https://reviews.llvm.org/D154596
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions