Skip to content

Commit

Permalink
Update src/coreclr/vm/ceeload.h
Browse files Browse the repository at this point in the history
  • Loading branch information
elinor-fung authored Aug 9, 2024
1 parent b2062d4 commit a65c3ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/vm/ceeload.h
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ class Module : public ModuleBase
const SString &GetPath()
{
WRAPPER_NO_CONTRACT;
_ASSERTE(SString{m_path}.Equals(m_pPEAssembly->GetPath()));
// Validate the pointers are the same to ensure the lifetime of m_path is handled.
_ASSERTE(m_path == m_pPEAssembly->GetPath().GetRawUnicode());
return m_pPEAssembly->GetPath();
}

Expand Down

0 comments on commit a65c3ce

Please sign in to comment.