[PATCH] D156497: [BPF] report fatal error rather than miscompile
Eduard Zingerman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 2 12:19:43 PDT 2023
eddyz87 added a comment.
After examining source code for llvm-lit, I found an option `--crash` for `not`. Here is the portable incantation:
; RUN: not --crash llc %s -filetype=null -march=bpf 2>&1 | FileCheck %s
This has to be used if command crashes (e.g. exits with `report_fatal_error()`), it is not needed if command does `exit(1)`. Does not seem to be documented but grep shows wide usage.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156497/new/
https://reviews.llvm.org/D156497
More information about the llvm-commits
mailing list