diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 05:15:57 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-10-03 05:15:57 +0000 |
commit | ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7 (patch) | |
tree | c6fa3d33b3f8742b14a91a956e87d5d62b853cd3 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | a8180a238c1300d1ad8fc3d352fd2f3b4f3f8ebc (diff) | |
download | llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.zip llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.gz llvm-ed1fe5d093df7ad9661f44f4e84caa0c16ad4ca7.tar.bz2 |
Replace double-negated !SourceLocation.isInvalid() with SourceLocation.isValid().
llvm-svn: 249228
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 647cf0b..9e9963c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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. |