[llvm] 2d96859 - [msan] Break the getShadow loop after matching an argument

Jianzhou Zhao via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 11:49:26 PST 2020


Author: Jianzhou Zhao
Date: 2020-11-12T19:48:59Z
New Revision: 2d96859ea612b4cca6ec2c6254b11b101e0d0259

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

LOG: [msan] Break the getShadow loop after matching an argument

Reviewed-by: eugenis

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

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
index f5dde7424482..d4f481f7c327 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -1737,6 +1737,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
           } else {
             setOrigin(A, getCleanOrigin());
           }
+
+          break;
         }
 
         if (!FArgEagerCheck)


        


More information about the llvm-commits mailing list