Skip to content

Commit 49ed53a

Browse files
[LLVM][rtsan] Switch to SmallVector in rtsan Pass
1 parent 3f3434b commit 49ed53a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/lib/Transforms/Instrumentation/RealtimeSanitizer.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,10 @@
2020
#include "llvm/Demangle/Demangle.h"
2121
#include "llvm/Transforms/Instrumentation/RealtimeSanitizer.h"
2222

23-
#include <vector>
24-
2523
using namespace llvm;
2624

27-
static std::vector<Type *> getArgTypes(ArrayRef<Value *> FunctionArgs) {
28-
std::vector<Type *> Types;
29-
Types.reserve(FunctionArgs.size());
25+
static SmallVector<Type *> getArgTypes(ArrayRef<Value *> FunctionArgs) {
26+
SmallVector<Type *> Types;
3027
for (Value *Arg : FunctionArgs)
3128
Types.push_back(Arg->getType());
3229
return Types;

0 commit comments

Comments
 (0)