diff options
author | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2024-09-15 13:41:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 13:41:26 +0100 |
commit | a56ca1a0fb248c6f38b5841323a74673748f43ea (patch) | |
tree | e104fccf809bc9cd73947c5954affdaf6076acd0 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | c49a1ae6d6ab274e573746c2ad29790ab98a7c62 (diff) | |
download | llvm-a56ca1a0fb248c6f38b5841323a74673748f43ea.zip llvm-a56ca1a0fb248c6f38b5841323a74673748f43ea.tar.gz llvm-a56ca1a0fb248c6f38b5841323a74673748f43ea.tar.bz2 |
[clang][codegen] Fix possible crash when setting TBAA metadata on FP math libcalls (#108575)
There's currently no code path that can reach this crash, but:
```
Instruction *Inst = cast<llvm::Instruction>(Call.getScalarVal());
```
fails if the call returns `void`. This could happen if a builtin for
something like `void sincos(double, double*, double*)` is added to
clang.
Instead, use the `llvm::CallBase` returned from `EmitCall()` to set the
TBAA metadata, which should exist no matter the return type.
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
0 files changed, 0 insertions, 0 deletions