compnerd updated this revision to Diff 507330.
compnerd added a comment.
Herald added a reviewer: jdoerfert.
Herald added subscribers: jplehr, sstefan1.
Address feedback
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146536/new/
https://reviews.llvm.org/D146536
Files:
lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
Index: lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
+++ lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
@@ -1299,6 +1299,15 @@
// Query the symbol's value as the variable initializer if valid.
if (member_comp_type.IsConst()) {
auto value = member->getValue();
+ if (value.Type == llvm::pdb::Empty) {
+ LLDB_LOG(GetLog(LLDBLog::AST),
+ "Class '{0}' has member '{1}' of type '{2}' with an unknown
"
+ "constant size.",
+ record_type.GetTypeName(), member_name,
+ member_comp_type.GetTypeName());
+ continue;
+ }
+
clang::QualType qual_type = decl->getType();
unsigned type_width = m_ast.getASTContext().getIntWidth(qual_type);
unsigned constant_width = value.getBitWidth();
Index: lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
===================================================================
--- lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
+++ lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
@@ -1299,6 +1299,15 @@
// Query the symbol's value as the variable initializer if valid.
if (member_comp_type.IsConst()) {
auto value = member->getValue();
+ if (value.Type == llvm::pdb::Empty) {
+ LLDB_LOG(GetLog(LLDBLog::AST),
+ "Class '{0}' has member '{1}' of type '{2}' with an unknown "
+ "constant size.",
+ record_type.GetTypeName(), member_name,
+ member_comp_type.GetTypeName());
+ continue;
+ }
+
clang::QualType qual_type = decl->getType();
unsigned type_width = m_ast.getASTContext().getIntWidth(qual_type);
unsigned constant_width = value.getBitWidth();
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits