summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/NativePDB
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-04-04 00:28:48 +0000
committerReid Kleckner <rnk@google.com>2019-04-04 00:28:48 +0000
commite10d00419ab749170301ef6b902b86bb2fb56da1 (patch)
treee301a26421fd35546acc13ecf0ec64e4a8954c9c /lldb/source/Plugins/SymbolFile/NativePDB
parent15f0057e66c58c390d5cd813fe98864d844f1e0d (diff)
downloadbcm5719-llvm-e10d00419ab749170301ef6b902b86bb2fb56da1.tar.gz
bcm5719-llvm-e10d00419ab749170301ef6b902b86bb2fb56da1.zip
[codeview] Remove Type member from CVRecord
Summary: Now CVType and CVSymbol are effectively type-safe wrappers around ArrayRef<uint8_t>. Make the kind() accessor load it from the RecordPrefix, which is the same for types and symbols. Reviewers: zturner, aganea Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D60018 llvm-svn: 357658
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/NativePDB')
-rw-r--r--lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
index ba5c14b9603..3c494dc8398 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
@@ -188,7 +188,7 @@ Error UdtRecordCompleter::visitKnownMember(CVMemberRecord &cvr,
TypeIndex method_list_idx = overloaded.MethodList;
CVType method_list_type = m_tpi.getType(method_list_idx);
- assert(method_list_type.Type == LF_METHODLIST);
+ assert(method_list_type.kind() == LF_METHODLIST);
MethodOverloadListRecord method_list;
llvm::cantFail(TypeDeserializer::deserializeAs<MethodOverloadListRecord>(
OpenPOWER on IntegriCloud