[lldb][NFC] Simplify CompilerType constructors/destructors and fix unused variable...
authorRaphael Isemann <teemperor@gmail.com>
Wed, 1 Jan 2020 21:42:25 +0000 (22:42 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Wed, 1 Jan 2020 21:56:16 +0000 (22:56 +0100)
commit8dbe2f02c6d300e7222b5064b28c4d82a031647d
treee0a01e5ce68b48498dd9d6c5602c1c2a3deb0955
parent8ca79dac559219358b0c6bb00bded30935c7aa6a
[lldb][NFC] Simplify CompilerType constructors/destructors and fix unused variable warning

CompilerType has no virtual functions and no statements in its constructors,
so we can simplify this code. This also allows Clang to emit unused variable warnings
for CompilerType, so I also removed one unused variable that otherwise causes -Werror
builds to fail.
lldb/include/lldb/Symbol/CompilerType.h
lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp
lldb/source/Symbol/CompilerType.cpp