HomeFreeBSD

Merge commit 7214f7a79 from llvm git (by Sam Elliott):

Description

Merge commit 7214f7a79 from llvm git (by Sam Elliott):

[RISCV] Lower llvm.trap and llvm.debugtrap

Summary:
Until this commit, these have lowered to a call to abort().

`llvm.trap()` now lowers to `unimp`, which should trap on all systems.

`llvm.debugtrap()` now lowers to `ebreak`, which is exactly what this
instruction is for.

Reviewers: asb, luismarques

Reviewed By: asb

Tags: #llvm

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

This fixes miscompilation resulting in linking failures with
INVARIANTS disabled.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D23857

Details

Provenance
brooksAuthored on
Reviewer
dim
Differential Revision
D23857: Merge commit 7214f7a79 from llvm git (by Sam Elliott):
Parents
rS358407: Merge r358406 from the clang1000-import branch:
Branches
Unknown
Tags
Unknown