aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-16 15:39:26 +0100
committerNikita Popov <npopov@redhat.com>2022-03-16 15:41:11 +0100
commitd7cf7ec05d3570998d04b9c257362838026ae75b (patch)
tree4e04b5094738d5cd24befa365ce55aab50ee343f /clang/lib/CodeGen/CodeGenFunction.cpp
parentd58ef6df0d4a248404810bd1b048a0a8a63cd62b (diff)
downloadllvm-d7cf7ec05d3570998d04b9c257362838026ae75b.zip
llvm-d7cf7ec05d3570998d04b9c257362838026ae75b.tar.gz
llvm-d7cf7ec05d3570998d04b9c257362838026ae75b.tar.bz2
[SROA] Handle over-large loads during presplitting
When a load extends past the extent of the alloca, SROA will restrict the slice size to extend to the end of the alloca only. However, presplitting was asserting that the load size and the slice size match exactly, which does not hold in this case. Relax the assertion to only require that the load size is greater or equal than the slice size.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions