]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Merge commit 37b7207651b4 from llvm-project (by zhongyunde@huawei.com):
authorDimitry Andric <dim@FreeBSD.org>
Mon, 15 Apr 2024 16:24:39 +0000 (18:24 +0200)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 15 Apr 2024 16:30:29 +0000 (18:30 +0200)
commit514c98ba14a0f590891844d1a6bec0ac4de54489
tree91c622c1a34d4ddbb2286cc32d4d5532385d30d1
parent21761f2ede4ebad13e78112b9409c1f20f946781
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
contrib/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp