Skip to content

Commit 3f3434b

Browse files
[LLVM][rtsan] Reserve space for types vector in pass
1 parent f930102 commit 3f3434b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Transforms/Instrumentation/RealtimeSanitizer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ using namespace llvm;
2626

2727
static std::vector<Type *> getArgTypes(ArrayRef<Value *> FunctionArgs) {
2828
std::vector<Type *> Types;
29+
Types.reserve(FunctionArgs.size());
2930
for (Value *Arg : FunctionArgs)
3031
Types.push_back(Arg->getType());
3132
return Types;

0 commit comments

Comments
 (0)