[Lldb-commits] [lldb] r369522 - Fix two compiler warnings
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 21 06:11:30 PDT 2019
Author: labath
Date: Wed Aug 21 06:11:30 2019
New Revision: 369522
URL: http://llvm.org/viewvc/llvm-project?rev=369522&view=rev
Log:
Fix two compiler warnings
Modified:
lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h?rev=369522&r1=369521&r2=369522&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h (original)
+++ lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.h Wed Aug 21 06:11:30 2019
@@ -37,6 +37,6 @@ public:
private:
DISALLOW_COPY_AND_ASSIGN(ClangDeclVendor);
};
-}; // namespace lldb_private
+} // namespace lldb_private
#endif
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=369522&r1=369521&r2=369522&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Wed Aug 21 06:11:30 2019
@@ -106,10 +106,12 @@ using namespace llvm;
using namespace clang;
namespace {
+#ifdef LLDB_CONFIGURATION_DEBUG
static void VerifyDecl(clang::Decl *decl) {
assert(decl && "VerifyDecl called with nullptr?");
decl->getAccess();
}
+#endif
static inline bool
ClangASTContextSupportsLanguage(lldb::LanguageType language) {
More information about the lldb-commits
mailing list