about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2023-06-10 12:06:17 -0400
committerTrevor Gross <tgross@intrepidcs.com>2023-06-16 20:56:01 -0400
commit22d00dcd47e0b8e18eb254966750fb523c726e4e (patch)
tree603ea4c342940caabe746bc86822350aa5d7f9f4 /compiler/rustc_codegen_gcc
parent4b71d79c972a605959b0a7c82b323fbd8562f070 (diff)
downloadrust-22d00dcd47e0b8e18eb254966750fb523c726e4e.tar.gz
rust-22d00dcd47e0b8e18eb254966750fb523c726e4e.zip
Apply changes to fix python linting errors
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/tools/generate_intrinsics.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
index 6188924b0d5..83abe145e64 100644
--- a/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
+++ b/compiler/rustc_codegen_gcc/tools/generate_intrinsics.py
@@ -3,7 +3,6 @@ import os
 import re
 import sys
 import subprocess
-from os import walk
 
 
 def run_command(command, cwd=None):
@@ -180,7 +179,7 @@ def update_intrinsics(llvm_path, llvmint, llvmint2):
             intrinsics[arch].sort(key=lambda x: (x[0], x[2]))
             out.write('    // {}\n'.format(arch))
             for entry in intrinsics[arch]:
-                if entry[2] == True: # if it is a duplicate
+                if entry[2] is True: # if it is a duplicate
                     out.write('    // [DUPLICATE]: "{}" => "{}",\n'.format(entry[0], entry[1]))
                 elif "_round_mask" in entry[1]:
                     out.write('    // [INVALID CONVERSION]: "{}" => "{}",\n'.format(entry[0], entry[1]))