diff options
| author | Dimitry Andric <dimitry@andric.com> | 2021-11-28 18:09:06 +0100 |
|---|---|---|
| committer | Dimitry Andric <dimitry@andric.com> | 2021-11-28 22:23:42 +0100 |
| commit | df08b2fe8b35cb63dfb3b49738a3494b9b4e6f8e (patch) | |
| tree | cbbc61ae752c5720d729900299f34cc4f773be0d /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 3608e18a946e77a474a468304b6c3904c55dbce0 (diff) | |
| download | llvm-df08b2fe8b35cb63dfb3b49738a3494b9b4e6f8e.zip llvm-df08b2fe8b35cb63dfb3b49738a3494b9b4e6f8e.tar.gz llvm-df08b2fe8b35cb63dfb3b49738a3494b9b4e6f8e.tar.bz2 | |
[AArch64] Avoid crashing on invalid -Wa,-march= values
As reported in https://bugs.freebsd.org/260078, the gnutls Makefiles
pass -Wa,-march=all to compile a number of assembly files. Clang does
not support this -march value, but because of a mistake in handling
the arguments, an unitialized Arg pointer is dereferenced, which can
cause a segfault.
Work around this by adding a check if the local WaMArch variable is
initialized, and if so, using its value in the diagnostic message.
Reviewed By: tschuett
Differential Revision: https://reviews.llvm.org/D114677
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
