[llvm] e85a96d - Update lit infra to detect "MemoryWithOrigins' sanitizer build.

Sumanth Gundapaneni via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 10:57:34 PST 2019


Author: Sumanth Gundapaneni
Date: 2019-11-14T12:57:17-06:00
New Revision: e85a96ddbfb487aa8c8bc393a7111f0868f9b3a5

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

LOG: Update lit infra to detect "MemoryWithOrigins' sanitizer build.

Differential Revision: https://reviews.llvm.org/D68399

Added: 
    

Modified: 
    llvm/utils/lit/lit/llvm/config.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index b0432995df14..32a2c9e16a87 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -71,7 +71,7 @@ def __init__(self, lit_config, config):
         sanitizers = frozenset(x.lower() for x in sanitizers.split(';'))
         if 'address' in sanitizers:
             features.add('asan')
-        if 'memory' in sanitizers:
+        if 'memory' in sanitizers or 'memorywithorigins' in sanitizers:
             features.add('msan')
         if 'undefined' in sanitizers:
             features.add('ubsan')


        


More information about the llvm-commits mailing list