clang-tidy/misc/UseOverride.cpp: Appease targeting msvc.

With IsLateTemplateParsed, FunctionDecl::doesThisDeclarationHaveABody() returns True regardless of Body.

llvm-svn: 208985
This commit is contained in:
NAKAMURA Takumi 2014-05-16 13:37:08 +00:00
parent 9750ce7ebd
commit 2dd94635d4
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void UseOverride::check(const MatchFinder::MatchResult &Result) {
}
}
if (InsertLoc.isInvalid() && Method->doesThisDeclarationHaveABody()) {
if (InsertLoc.isInvalid() && Method->getBody()) {
InsertLoc = Method->getBody()->getLocStart();
}