diff options
author | Sharjeel Khan <sharjeelkhan@google.com> | 2025-08-06 23:36:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-06 20:36:21 -0700 |
commit | d9f9064cfae6929db3f55f6146ee23447b4f9f80 (patch) | |
tree | 0bd79373411d80efdcdfcc771b14b7c8ee6208ae /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 44af26ea2e0b0fedb74276f9678eba4df5f83aab (diff) | |
download | llvm-d9f9064cfae6929db3f55f6146ee23447b4f9f80.zip llvm-d9f9064cfae6929db3f55f6146ee23447b4f9f80.tar.gz llvm-d9f9064cfae6929db3f55f6146ee23447b4f9f80.tar.bz2 |
[ubsan_minimal] Add address argument to Android's abort message function (#152419)
https://github.com/llvm/llvm-project/pull/152192 forgot to make the
argument changes to Android code in UBsan minimal causing a build error
for Android LLVM:
```
/b/f/w/src/git/out/llvm-project/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp:102:3: error: no matching function for call to 'format_msg'
102 | format_msg(kind, caller, msg_buf, msg_buf + sizeof(msg_buf));
| ^~~~~~~~~~
/b/f/w/src/git/out/llvm-project/compiler-rt/lib/ubsan_minimal/ubsan_minimal_handlers.cpp:37:13:
note: candidate function not viable: requires 5 arguments, but 4 were
provided
37 | static void format_msg(const char *kind, uintptr_t caller,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 | const uintptr_t *address, char *buf,
const char *end) {
```
This change adds the address argument to abort_with_message just like
__ubsan_report_error_fatal so it can be passed to format_msg.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions