Remove redundant check discovered in post-commit review of r209505.

llvm-svn: 209882
This commit is contained in:
Daniel Jasper 2014-05-30 09:21:17 +00:00
parent 5bed4206c8
commit 5070c18928
1 changed files with 1 additions and 3 deletions

View File

@ -96,10 +96,8 @@ void UseOverride::check(const MatchFinder::MatchResult &Result) {
}
}
if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody() &&
Method->getBody()) {
if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody())
InsertLoc = Method->getBody()->getLocStart();
}
if (!InsertLoc.isValid()) {
if (Tokens.size() > 2 && GetText(Tokens.back(), Sources) == "0" &&