Remove no-op checks for a null CodeCompleter. We have already
authorChandler Carruth <chandlerc@gmail.com>
Fri, 4 Nov 2016 06:06:50 +0000 (06:06 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 4 Nov 2016 06:06:50 +0000 (06:06 +0000)
commitede11636a510c9b919ebf37263396d7b142b3c20
tree5513d988c1971adf82f3e4ef2b715acd1e3d0df6
parent08c8de215ca5609b8a6018a83bd8490b51268fd1
Remove no-op checks for a null CodeCompleter. We have already
dereferenced the pointer at this point, and these routines are
exclusively called after the parser encounters a code completion token.
Other code completion routines called at that point do not check for
null either, so this is clearly the current invariant expected in the
code.

This fixes another PVS-Studio found issue.

llvm-svn: 285980
clang/lib/Sema/SemaCodeComplete.cpp