[llvm] 6742c8a - [NFC][msan] Break the loop when done
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 20 21:08:25 PDT 2021
Author: Vitaly Buka
Date: 2021-10-20T21:08:12-07:00
New Revision: 6742c8a2d83a7f02312e49e02cce2b25d554ec95
URL: https://github.com/llvm/llvm-project/commit/6742c8a2d83a7f02312e49e02cce2b25d554ec95
DIFF: https://github.com/llvm/llvm-project/commit/6742c8a2d83a7f02312e49e02cce2b25d554ec95.diff
LOG: [NFC][msan] Break the loop when done
We have nothing to do after the Argument
is found.
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 20e4b8b735fc7..ade0d2058e0d1 100644
--- a/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
@@ -1708,7 +1708,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
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
More information about the llvm-commits
mailing list