Index: minidump/minidump_module_writer.cc |
diff --git a/minidump/minidump_module_writer.cc b/minidump/minidump_module_writer.cc |
index 66ad8d5af7700ab83da8df701b107353d50df0bb..04c8b1771e33c7df7cb52c73ed79105e3153993b 100644 |
--- a/minidump/minidump_module_writer.cc |
+++ b/minidump/minidump_module_writer.cc |
@@ -250,13 +250,12 @@ void MinidumpModuleWriter::SetFileFlagsAndMask(uint32_t file_flags, |
bool MinidumpModuleWriter::Freeze() { |
DCHECK_EQ(state(), kStateMutable); |
+ CHECK(name_); |
if (!MinidumpWritable::Freeze()) { |
return false; |
} |
- CHECK(name_); |
- |
name_->RegisterRVA(&module_.ModuleNameRva); |
if (codeview_record_) { |
@@ -281,11 +280,10 @@ size_t MinidumpModuleWriter::SizeOfObject() { |
std::vector<internal::MinidumpWritable*> MinidumpModuleWriter::Children() { |
DCHECK_GE(state(), kStateFrozen); |
+ DCHECK(name_); |
std::vector<MinidumpWritable*> children; |
- if (name_) { |
- children.push_back(name_.get()); |
- } |
+ children.push_back(name_.get()); |
if (codeview_record_) { |
children.push_back(codeview_record_); |
} |