[llvm] 7dd90da - [UpdateTestChecks] Fix typo & copy/paste in comments

Thomas Preud'homme via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 09:11:35 PDT 2021


Author: Thomas Preud'homme
Date: 2021-03-24T16:11:36Z
New Revision: 7dd90da79f082008fb443285c13bc2035c34e71d

URL: https://github.com/llvm/llvm-project/commit/7dd90da79f082008fb443285c13bc2035c34e71d
DIFF: https://github.com/llvm/llvm-project/commit/7dd90da79f082008fb443285c13bc2035c34e71d.diff

LOG: [UpdateTestChecks] Fix typo & copy/paste in comments

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index b3ca33f07428a..38b5b1d96411b 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -504,11 +504,11 @@ def get_ir_prefix_from_ir_value_re_match(match):
         return nameless_values[idx].ir_regexp
     return nameless_values[idx].global_ir_prefix_regexp
 
-# Return true if this kind or IR value is "local", basically if it matches '%{{.*}}'.
+# Return true if this kind of IR value is "local", basically if it matches '%{{.*}}'.
 def is_local_def_ir_value_match(match):
     return nameless_values[get_idx_from_ir_value_match(match)].ir_prefix == '%'
 
-# Return true if this kind or IR value is "local", basically if it matches '%{{.*}}'.
+# Return true if this kind of IR value is "global", basically if it matches '#{{.*}}'.
 def is_global_scope_ir_value_match(match):
     return nameless_values[get_idx_from_ir_value_match(match)].global_ir_prefix is not None
 


        


More information about the llvm-commits mailing list