[NFC][msan] Break the loop when done

We have nothing to do after the Argument
is found.
This commit is contained in:
Vitaly Buka 2021-10-20 20:00:10 -07:00
parent 6b715e9c4d
commit 6742c8a2d8
1 changed files with 1 additions and 1 deletions

View File

@ -1708,7 +1708,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
if (FArgEagerCheck) { if (FArgEagerCheck) {
*ShadowPtr = getCleanShadow(V); *ShadowPtr = getCleanShadow(V);
setOrigin(A, getCleanOrigin()); setOrigin(A, getCleanOrigin());
continue; break;
} else if (FArgByVal) { } else if (FArgByVal) {
Value *Base = getShadowPtrForArgument(&FArg, EntryIRB, ArgOffset); Value *Base = getShadowPtrForArgument(&FArg, EntryIRB, ArgOffset);
// ByVal pointer itself has clean shadow. We copy the actual // ByVal pointer itself has clean shadow. We copy the actual