Skip to content

Commit e77b14a

Browse files
authored
Merge pull request #39501 from etcwilde/ewilde/fix-missing-smallvector-template-parameter
Fix missing template member in SmallVector
2 parents 9b0f61b + 514fc83 commit e77b14a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/SILOptimizer/Transforms/SILMem2Reg.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include "llvm/ADT/DenseSet.h"
4242
#include "llvm/ADT/STLExtras.h"
4343
#include "llvm/ADT/Statistic.h"
44+
#include "llvm/ADT/SmallVector.h"
4445
#include "llvm/Support/Debug.h"
4546
#include <algorithm>
4647
#include <queue>
@@ -402,11 +403,11 @@ class StackAllocationPromoter {
402403
DeallocStackInst *dsi;
403404

404405
/// All the dealloc_stack instructions.
405-
SmallVector<DeallocStackInst *> dsis;
406+
llvm::SmallVector<DeallocStackInst *> dsis;
406407

407408
/// The lexical begin_borrow instructions that were created to track the
408409
/// lexical lifetimes introduced by the alloc_stack, if it is lexical.
409-
SmallVector<SILBasicBlock *> lexicalBBIBlocks;
410+
llvm::SmallVector<SILBasicBlock *> lexicalBBIBlocks;
410411

411412
/// Dominator info.
412413
DominanceInfo *domInfo;
@@ -792,7 +793,7 @@ void StackAllocationPromoter::fixPhiPredBlock(BlockSetVector &phiBlocks,
792793

793794
LLVM_DEBUG(llvm::dbgs() << "*** Found the definition: " << *def.copy);
794795

795-
SmallVector<SILValue> vals;
796+
llvm::SmallVector<SILValue> vals;
796797
vals.push_back(def.stored);
797798
if (shouldAddLexicalLifetime(asi)) {
798799
vals.push_back(def.borrow);

0 commit comments

Comments
 (0)