aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorBenjamin Maxwell <benjamin.maxwell@arm.com>2024-09-15 13:41:26 +0100
committerGitHub <noreply@github.com>2024-09-15 13:41:26 +0100
commita56ca1a0fb248c6f38b5841323a74673748f43ea (patch)
treee104fccf809bc9cd73947c5954affdaf6076acd0 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentc49a1ae6d6ab274e573746c2ad29790ab98a7c62 (diff)
downloadllvm-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