Skip to content

Commit 3d96370

Browse files
committed
Use push_back instead of append(1,...), per Vitaly's comment
1 parent f9f7406 commit 3d96370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3966,11 +3966,11 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
39663966
for (unsigned int i = 0; i < I.arg_size(); i++) {
39673967
if (i < I.arg_size() - trailingVerbatimArgs) {
39683968
Value *Shadow = getShadow(&I, i);
3969-
ShadowArgs.append(1, Shadow);
3969+
ShadowArgs.push_back(Shadow);
39703970
} else {
39713971
Value *Arg = I.getArgOperand(i);
39723972
insertShadowCheck(Arg, &I);
3973-
ShadowArgs.append(1, Arg);
3973+
ShadowArgs.push_back(Arg);
39743974
}
39753975
}
39763976

0 commit comments

Comments
 (0)