diff options
| author | gingerBill <bill@gingerbill.org> | 2019-07-29 10:43:07 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-07-29 10:43:07 +0100 |
| commit | f1631812049ae2c50b9ddb2f5c163327f15731c8 (patch) | |
| tree | ebd4a7bb77b0c4abee0945351a277ba8787b9784 /src/ir_print.cpp | |
| parent | 2c5c8192f8fcb40fdef183c25a8d799f23f23439 (diff) | |
Add extra hints for LLVM for implicit reference parameters
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index a64f454d0..58e7b8b0d 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -1904,6 +1904,9 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) { if (e->flags&EntityFlag_NoAlias) { ir_write_str_lit(f, " noalias"); } + if (e->flags&EntityFlag_ImplicitReference) { + ir_write_str_lit(f, " nonnull dereferenceable"); + } ir_write_byte(f, ' '); irValue *arg = call->args[i]; if (is_type_boolean(t)) { |