Skip to content

Fix missing template member in SmallVector #39501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/SILOptimizer/Transforms/SILMem2Reg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include <algorithm>
#include <queue>
Expand Down Expand Up @@ -402,11 +403,11 @@ class StackAllocationPromoter {
DeallocStackInst *dsi;

/// All the dealloc_stack instructions.
SmallVector<DeallocStackInst *> dsis;
llvm::SmallVector<DeallocStackInst *> dsis;

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

/// Dominator info.
DominanceInfo *domInfo;
Expand Down Expand Up @@ -792,7 +793,7 @@ void StackAllocationPromoter::fixPhiPredBlock(BlockSetVector &phiBlocks,

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

SmallVector<SILValue> vals;
llvm::SmallVector<SILValue> vals;
vals.push_back(def.stored);
if (shouldAddLexicalLifetime(asi)) {
vals.push_back(def.borrow);
Expand Down