forked from OSchip/llvm-project
[NFC][msan] Break the loop when done
We have nothing to do after the Argument is found.
This commit is contained in:
parent
6b715e9c4d
commit
6742c8a2d8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue