[all-commits] [llvm/llvm-project] 3bea73: [lldb] Fix compilation with gcc-6.5
Pavel Labath via All-commits
all-commits at lists.llvm.org
Wed Mar 31 23:45:17 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3bea7306e8669f94bacafae68748a9139cfc0b98
https://github.com/llvm/llvm-project/commit/3bea7306e8669f94bacafae68748a9139cfc0b98
Author: Pavel Labath <pavel at labath.sk>
Date: 2021-04-01 (Thu, 01 Apr 2021)
Changed paths:
M lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux.h
M lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp
M lldb/source/Plugins/Process/Utility/NativeRegisterContextDBReg_x86.h
M lldb/unittests/Utility/ReproducerInstrumentationTest.cpp
Log Message:
-----------
[lldb] Fix compilation with gcc-6.5
This fixes (works around) two errors with gcc-6.5.
- in the RegisterContext_x86 files, gcc is unable to synthesize a
default constructor -- it thinks it needs to initialize the virtual
base class, even though said classes are abstract. I fix that by
providing a dummy constructor.
- In ReproducerInstrumentationTest, it is not able to deduce that the
TestingRegistry class is movable (it contains a map of unique
pointers). I change the type from Optional<TestingRegistry> to
unique_ptr<TestingRegistry), so that moving is not required
(copying/moving a polymorphic type is not a very good idea in any
case).
More information about the All-commits
mailing list