HomeFreeBSD

Apply clang fix for assertion failure compiling science/chrono

Description

Apply clang fix for assertion failure compiling science/chrono

Merge commit 6b0f35931a44 from llvm git (by Jennifer Yu):

Fix signal during the call to checkOpenMPLoop.

The root problem is a null pointer is accessed during the call to
checkOpenMPLoop, because loop up bound expr is an error expression
due to error diagnostic was emit early.

To fix this, in setLCDeclAndLB, setUB and setStep instead return false,
return true when LB, UB or Step contains Error, so that the checking is
stopped in checkOpenMPLoop.

Differential Revision: https://reviews.llvm.org/D107385

Note this only fixes the assertion reported in bug 261567; some other
tweaks for port dependencies are probably still required to make it
build to completion.

PR: 261567
MFC after: 3 days

Details

Provenance
dimAuthored on Jan 30 2022, 8:41 PM
Parents
rG33ee87fa0ae8: improve error handling for corrupt database
Branches
Unknown
Tags
Unknown