Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().

llvm-svn: 249228
This commit is contained in:
Yaron Keren
2015-10-03 05:15:57 +00:00
parent a8180a238c
commit ed1fe5d093
10 changed files with 15 additions and 15 deletions

View File

@@ -1281,7 +1281,7 @@ bool CodeGenModule::isInSanitizerBlacklist(llvm::Function *Fn,
if (SanitizerBL.isBlacklistedFunction(Fn->getName()))
return true;
// Blacklist by location.
if (!Loc.isInvalid())
if (Loc.isValid())
return SanitizerBL.isBlacklistedLocation(Loc);
// If location is unknown, this may be a compiler-generated function. Assume
// it's located in the main file.