Skip to content

Commit

Permalink
Thread safety analysis: Remove unused variable. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
d0k committed Dec 9, 2021
1 parent a1e7f62 commit 4c7de4f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clang/lib/Analysis/ThreadSafety.cpp
Expand Up @@ -418,7 +418,6 @@ class LocalVariableMap {
private:
Context::Factory ContextFactory;
std::vector<VarDefinition> VarDefinitions;
std::vector<unsigned> CtxIndices;
std::vector<std::pair<const Stmt *, Context>> SavedContexts;

public:
Expand Down Expand Up @@ -731,8 +730,6 @@ void LocalVariableMap::traverseCFG(CFG *CFGraph,
std::vector<CFGBlockInfo> &BlockInfo) {
PostOrderCFGView::CFGBlockSet VisitedBlocks(CFGraph);

CtxIndices.resize(CFGraph->getNumBlockIDs());

for (const auto *CurrBlock : *SortedGraph) {
unsigned CurrBlockID = CurrBlock->getBlockID();
CFGBlockInfo *CurrBlockInfo = &BlockInfo[CurrBlockID];
Expand Down

0 comments on commit 4c7de4f

Please sign in to comment.