[Lldb-commits] [lldb] [LLDB][NativePDB] Use pointer and pointee size for pointer constants (PR #180987)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 11 10:24:04 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Leonard Grey (speednoisemovement)
<details>
<summary>Changes</summary>
Follow-up from https://github.com/llvm/llvm-project/pull/180612#pullrequestreview-3780142672
This was introduced in 2af3416618e6 and not fundamentally changed since. The review (https://reviews.llvm.org/D54452) doesn't mention any motivation for why we would want the pointee size/signedness here. As @<!-- -->Nerixyz points out, only a null pointer can be `S_CONSTANT` anyway.
---
Full diff: https://github.com/llvm/llvm-project/pull/180987.diff
1 Files Affected:
- (modified) lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp (+1-1)
``````````diff
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
index 75adf7302f00c..ff5017e611fc8 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
@@ -91,7 +91,7 @@ static std::pair<size_t, bool> GetIntegralTypeInfo(TypeIndex ti,
case LF_POINTER: {
PointerRecord pr;
llvm::cantFail(TypeDeserializer::deserializeAs<PointerRecord>(cvt, pr));
- return GetIntegralTypeInfo(pr.ReferentType, tpi);
+ return {pr.getSize(), false};
}
case LF_ENUM: {
EnumRecord er;
``````````
</details>
https://github.com/llvm/llvm-project/pull/180987
More information about the lldb-commits
mailing list