[Lldb-commits] [lldb] [lldb] Add GetPointerDiffType to TypeSystemClang (PR #185314)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 9 03:00:23 PDT 2026
================
@@ -2401,6 +2401,15 @@ CompilerType TypeSystemClang::GetPointerSizedIntType(bool is_signed) {
getASTContext().getTypeSize(getASTContext().VoidPtrTy), is_signed);
}
+CompilerType TypeSystemClang::GetPointerDiffType(bool is_signed) {
+ if (!getASTContext().VoidPtrTy)
+ return {};
----------------
Michael137 wrote:
Little bit opaque for future readers. We should probably have a helper called `AreBuiltinTypesInitialized` or something which does this check. And call it from all the places where we rely on it
But not in scope for this PR. Maybe leave a comment explaining why this is necessary?
https://github.com/llvm/llvm-project/pull/185314
More information about the lldb-commits
mailing list