[compiler-rt] 02c7490 - [lsan] Fix SyntaxWarning: "is" with a literal
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 02:21:44 PDT 2020
Author: Vitaly Buka
Date: 2020-07-17T02:21:18-07:00
New Revision: 02c74907e06dd8ec551eca6fe075b74927264c9b
URL: https://github.com/llvm/llvm-project/commit/02c74907e06dd8ec551eca6fe075b74927264c9b
DIFF: https://github.com/llvm/llvm-project/commit/02c74907e06dd8ec551eca6fe075b74927264c9b.diff
LOG: [lsan] Fix SyntaxWarning: "is" with a literal
Added:
Modified:
compiler-rt/test/lsan/lit.common.cfg.py
Removed:
################################################################################
diff --git a/compiler-rt/test/lsan/lit.common.cfg.py b/compiler-rt/test/lsan/lit.common.cfg.py
index 6b699b274c63..1d393880af6a 100644
--- a/compiler-rt/test/lsan/lit.common.cfg.py
+++ b/compiler-rt/test/lsan/lit.common.cfg.py
@@ -70,7 +70,7 @@ def build_invocation(compile_flags):
config.substitutions.append( ("%clangxx_lsan ", build_invocation(clang_lsan_cxxflags)) )
# LeakSanitizer tests are currently supported on x86-64 Linux, PowerPC64 Linux, arm Linux, mips64 Linux, s390x Linux and x86_64 Darwin.
-supported_linux = config.host_os is 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'arm', 'armhf', 'armv7l', 's390x']
+supported_linux = config.host_os == 'Linux' and config.host_arch in ['x86_64', 'ppc64', 'ppc64le', 'mips64', 'arm', 'armhf', 'armv7l', 's390x']
supported_darwin = config.host_os == 'Darwin' and config.target_arch in ['x86_64']
supported_netbsd = config.host_os == 'NetBSD' and config.target_arch in ['x86_64', 'i386']
if not (supported_linux or supported_darwin or supported_netbsd):
More information about the llvm-commits
mailing list