[msan] Break the getShadow loop after matching an argument
authorJianzhou Zhao <jianzhouzh@google.com>
Thu, 12 Nov 2020 19:47:39 +0000 (19:47 +0000)
committerJianzhou Zhao <jianzhouzh@google.com>
Thu, 12 Nov 2020 19:48:59 +0000 (19:48 +0000)
Reviewed-by: eugenis
Differential Revision: https://reviews.llvm.org/D91320

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

index f5dde74..d4f481f 100644 (file)
@@ -1737,6 +1737,8 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
           } else {
             setOrigin(A, getCleanOrigin());
           }
+
+          break;
         }
 
         if (!FArgEagerCheck)