Skip to content

Commit a4dafa3

Browse files
authored
Merge pull request #4761 from swiftix/assorted-fixes-2
2 parents 6d32a0b + 5502b90 commit a4dafa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SILOptimizer/Utils/Devirtualize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "swift/SIL/InstructionUtils.h"
2525
#include "swift/SILOptimizer/Utils/Local.h"
2626
#include "llvm/ADT/ArrayRef.h"
27+
#include "llvm/ADT/SmallSet.h"
2728
#include "llvm/ADT/Statistic.h"
2829
#include "llvm/Support/Casting.h"
2930
using namespace swift;
@@ -279,7 +280,7 @@ SILType swift::getExactDynamicType(SILValue S, SILModule &M,
279280
// The detected type of the underlying object.
280281
SILType ResultType;
281282
// Set of processed values.
282-
llvm::SetVector<SILValue> Processed;
283+
llvm::SmallSet<SILValue, 8> Processed;
283284
WorkList.push_back(S);
284285

285286
while (!WorkList.empty()) {

0 commit comments

Comments
 (0)