Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user