Page MenuHomePhabricator

Add assert for 'bad' code path in GetUniqueNamespaceDeclaration
Needs ReviewPublic

Authored by teemperor on Feb 7 2019, 1:56 AM.

Details

Reviewers
shafik
Summary

If we call this function with a non-namespace as a second argument (and a nullptr name), we currently
only get a nullptr as a return when we hit the "Bad!!!" code path. This patch just adds an assert as this
seems to be a programming error in the calling code.

Diff Detail

Event Timeline

teemperor created this revision.Feb 7 2019, 1:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 7 2019, 1:56 AM