HomeFreeBSD

Merge commit 37b7207651b4 from llvm-project (by zhongyunde@huawei.com):

Description

Merge commit 37b7207651b4 from llvm-project (by zhongyunde@huawei.com):

[SimplifyCFG] Fix crash when there is unreachable large index (#88616)

The large case index out of scope is dead code, but it is still be
created for TableContents in SwitchLookupTable::SwitchLookupTable,
so make sure the table size after growing should not get smaller.

Fix https://github.com/llvm/llvm-project/issues/88607

This should fix "Assertion failed: (idx < size()), function operator[]"
when building the science/dynare port.

PR: 276104, 278320
Reported by: yuri
MFC after: 1 month

(cherry picked from commit 514c98ba14a0f590891844d1a6bec0ac4de54489)

Details

Provenance
dimAuthored on Apr 15 2024, 4:24 PM
Parents
rGbf7e13e690c3: sanitizers: mark __elf_aux_vector as weak, to allow linking without libsys
Branches
Unknown
Tags
Unknown