forked from OSchip/llvm-project
Remove redundant check discovered in post-commit review of r209505.
llvm-svn: 209882
This commit is contained in:
parent
5bed4206c8
commit
5070c18928
|
@ -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" &&
|
||||
|
|
Loading…
Reference in New Issue