[clang][NFC] Remove unreachable code
authorNathan Sidwell <nathan@acm.org>
Tue, 1 Feb 2022 15:49:28 +0000 (07:49 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 2 Feb 2022 13:14:26 +0000 (05:14 -0800)
commitccf02cdf17d68a7dd4411daa74b81fa5b48d0a0c
tree51b230abc3ac8fb20dc220cbe3b5635c4c363589
parentec10ff37e2c3a2294e6bf795d1692a13c168bb2b
[clang][NFC] Remove unreachable code

NamespaceDecls are NamedDecls, so NSD can never be non-null in the
else branch.  Add a comment about this whole ModuleInternal linkage
concept going away when p1815 is implemented.

Reviewed By: bruno

Differential Revision: https://reviews.llvm.org/D118704
clang/lib/AST/Decl.cpp