mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 00:36:34 +00:00
[OpenMP] Fix comparison to True/False in openmp/**.py (#94041)
from PEP8 (https://peps.python.org/pep-0008/#programming-recommendations): > Comparisons to singletons like None should always be done with is or is not, never the equality operators. Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
parent
16dd75b41c
commit
11a9ab1257
@ -50,7 +50,7 @@ class ompd_init(gdb.Command):
|
||||
"No ompd_dll_locations symbol in execution, make sure to have an OMPD enabled OpenMP runtime"
|
||||
)
|
||||
|
||||
while gdb.parse_and_eval("(char**)ompd_dll_locations") == False:
|
||||
while not gdb.parse_and_eval("(char**)ompd_dll_locations"):
|
||||
gdb.execute("tbreak ompd_dll_locations_valid")
|
||||
gdb.execute("continue")
|
||||
|
||||
|
@ -83,7 +83,7 @@ if config.operating_system == 'Darwin':
|
||||
if 'Linux' in config.operating_system:
|
||||
config.available_features.add("linux")
|
||||
|
||||
if config.has_tsan == True:
|
||||
if config.has_tsan:
|
||||
config.available_features.add("tsan")
|
||||
|
||||
# to run with icc INTEL_LICENSE_FILE must be set
|
||||
|
Loading…
x
Reference in New Issue
Block a user