From c49e71805142ac3a27a5567ce516890e9243b34e Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 3 Dec 2020 00:08:19 +0100 Subject: [PATCH] [lldb][NFC] Make DeclOrigin::Valid() const --- lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h index b8c751479d4b..bf4ad174cf9c 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h @@ -160,7 +160,7 @@ public: decl = rhs.decl; } - bool Valid() { return (ctx != nullptr || decl != nullptr); } + bool Valid() const { return (ctx != nullptr || decl != nullptr); } clang::ASTContext *ctx; clang::Decl *decl;