]> granicus.if.org Git - clang/commit
simplify Sema::getTypeName a bit: if control gets out of the switch,
authorChris Lattner <sabre@nondot.org>
Sun, 25 Oct 2009 17:16:46 +0000 (17:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 25 Oct 2009 17:16:46 +0000 (17:16 +0000)
commit10ca337b1e3684547bd21021a23a566f30fa83b4
treec28edb3ea39604c57f50ad9a4a6b59d0dbc26b2c
parentb7c3fd7b493329550c29dec11d31aca4d537e23e
simplify Sema::getTypeName a bit: if control gets out of the switch,
IIDecl cannot be null.  There is no need to check for both C++ mode and
presence of CXXRecordDecl.  ObjC interfaces can't have ScopeSpecs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExpr.cpp
lib/Sema/SemaDecl.cpp