diff options
| author | DianQK <dianqk@dianqk.net> | 2024-08-29 18:12:31 +0800 |
|---|---|---|
| committer | DianQK <dianqk@dianqk.net> | 2024-08-29 18:12:31 +0800 |
| commit | 9589eb95d2872337e932c8b5dc26bdb5cb3dc15b (patch) | |
| tree | e711a79c37a3af29fc2f9479b788dfe57f6321a9 /src | |
| parent | c9bd03cb724e13cca96ad320733046cbdb16fbbe (diff) | |
Add `-Zlint-llvm-ir`
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/unstable-book/src/compiler-flags/lint-llvm-ir.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/lint-llvm-ir.md b/src/doc/unstable-book/src/compiler-flags/lint-llvm-ir.md new file mode 100644 index 00000000000..7b99c25a694 --- /dev/null +++ b/src/doc/unstable-book/src/compiler-flags/lint-llvm-ir.md @@ -0,0 +1,7 @@ +# `lint-llvm-ir` + +--------------------- + +This flag will add `LintPass` to the start of the pipeline. +You can use it to check for common errors in the LLVM IR generated by `rustc`. +You can add `-Cllvm-args=-lint-abort-on-error` to abort the process if errors were found. |
