From 6742c8a2d83a7f02312e49e02cce2b25d554ec95 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Wed, 20 Oct 2021 20:00:10 -0700 Subject: [PATCH] [NFC][msan] Break the loop when done We have nothing to do after the Argument is found. --- llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp index 20e4b8b735fc..ade0d2058e0d 100644 --- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp @@ -1708,7 +1708,7 @@ struct MemorySanitizerVisitor : public InstVisitor { if (FArgEagerCheck) { *ShadowPtr = getCleanShadow(V); setOrigin(A, getCleanOrigin()); - continue; + break; } else if (FArgByVal) { Value *Base = getShadowPtrForArgument(&FArg, EntryIRB, ArgOffset); // ByVal pointer itself has clean shadow. We copy the actual