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

(cherry picked from commit fdf27841010464ad65c8791077a07000cdb01013)

Details

Provenance
dimAuthored on Jan 30 2022, 8:41 PM
Parents
rGbde54d2dc020: contrib/terminus: update to terminus-font-4.49.1
Branches
Unknown
Tags
Unknown