[clang-tools-extra] r209882 - Remove redundant check discovered in post-commit review of r209505.
Daniel Jasper
djasper at google.com
Fri May 30 02:21:17 PDT 2014
Author: djasper
Date: Fri May 30 04:21:17 2014
New Revision: 209882
URL: http://llvm.org/viewvc/llvm-project?rev=209882&view=rev
Log:
Remove redundant check discovered in post-commit review of r209505.
Modified:
clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp
Modified: clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp?rev=209882&r1=209881&r2=209882&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/UseOverride.cpp Fri May 30 04:21:17 2014
@@ -96,10 +96,8 @@ void UseOverride::check(const MatchFinde
}
}
- 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" &&
More information about the cfe-commits
mailing list