Add assert for 'bad' code path in GetUniqueNamespaceDeclaration
authorRaphael Isemann <teemperor@gmail.com>
Thu, 4 Jul 2019 19:49:31 +0000 (19:49 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 4 Jul 2019 19:49:31 +0000 (19:49 +0000)
commitc494481ea4f866c922521fd928166d10518ab957
tree0f338616003e9895726eeaa8c2b27471e77682ac
parentd9b7b2d5f7a1d6225eb9756f050d4fc22a5e3d0b
Add assert for 'bad' code path in GetUniqueNamespaceDeclaration

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.

Reviewers: shafik

Subscribers: abidh, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D57880

llvm-svn: 365157
lldb/source/Symbol/ClangASTContext.cpp