aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp')
-rw-r--r--llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
index 49b24e21cf60..e4e2b2a6d21a 100644
--- a/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
+++ b/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp
@@ -490,7 +490,10 @@ private:
Error LeafRecordImpl<FieldListRecord>::fromCodeViewRecord(CVType Type) {
MemberRecordConversionVisitor V(Members);
- return visitMemberRecordStream(Type.content(), V);
+ FieldListRecord FieldList;
+ cantFail(TypeDeserializer::deserializeAs<FieldListRecord>(Type,
+ FieldList));
+ return visitMemberRecordStream(FieldList.Data, V);
}
CVType LeafRecordImpl<FieldListRecord>::toCodeViewRecord(