aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2022-04-14 13:09:09 +0100
committerFraser Cormack <fraser@codeplay.com>2022-04-19 07:43:38 +0100
commitc5cac48549ed254cd5ad5eef770ebfb22ccd9f64 (patch)
treeca17e36355058b2cb698388b11aa4bec198e664a /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent00537946aa29928894ba140687de1b6f9494e44d (diff)
downloadllvm-c5cac48549ed254cd5ad5eef770ebfb22ccd9f64.zip
llvm-c5cac48549ed254cd5ad5eef770ebfb22ccd9f64.tar.gz
llvm-c5cac48549ed254cd5ad5eef770ebfb22ccd9f64.tar.bz2
[RISCV] Fix lowering of BUILD_VECTORs as VID sequences
This patch fixes a bug when lowering BUILD_VECTOR via VID sequences. After adding support for fractional steps in D106533, elements with zero steps may be skipped if no step has yet been computed. This allowed certain sequences to slip through the cracks, being identified as VID sequences when in fact they are not. The fix for this is to perform a second loop over the BUILD_VECTOR to validate the entire sequence once the step has been computed. This isn't the most efficient, but on balance the code is more readable and maintainable than doing back-validation during the first loop. Fixes the tests introduced in D123785. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D123786
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions