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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lldb/trunk/source/Symbol/ClangASTContext.cpp | ||
---|---|---|
1957 | We don't have a way to trigger this branch? |
lldb/trunk/source/Symbol/ClangASTContext.cpp | ||
---|---|---|
1957 | I guess this is the whole point of the assertion. It can't be hit. BTW, you can replace it with llvm_unreachable() |
lldb/trunk/source/Symbol/ClangASTContext.cpp | ||
---|---|---|
1957 | "can't" in this context is a very strong word. It shouldn't. If it gets hit, we should remove the assertion. |
We don't have a way to trigger this branch?