[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Handle pointer-to-member-data non-type template (PR #187598)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 20 05:21:15 PDT 2026


================
@@ -2015,21 +2015,97 @@ static std::optional<clang::APValue> MakeAPValue(const clang::ASTContext &ast,
     return std::nullopt;
 
   bool is_signed = false;
-  const bool is_integral = clang_type.IsIntegerOrEnumerationType(is_signed);
+  const bool is_integral = clang_type.IsIntegerOrEnumerationType(is_signed) ||
+                           clang_type.IsMemberDataPointerType();
----------------
Michael137 wrote:

`is_integral` no longer makes sense. Lets just inline the condition into the `if-statement` below and remove the need for the variable entirely.

https://github.com/llvm/llvm-project/pull/187598


More information about the lldb-commits mailing list