Use SmallVector instead of an std::queue.

llvm-svn: 100730
This commit is contained in:
Ted Kremenek 2010-04-08 00:05:00 +00:00
parent 823015d627
commit 465dffa736
1 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,6 @@
#include "clang/Analysis/Analyses/ReachableCode.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/Support/Casting.h"
#include <queue>
using namespace clang;
@ -75,7 +74,7 @@ static ControlFlowKind CheckFallThrough(AnalysisContext &AC) {
// The CFG leaves in dead things, and we don't want the dead code paths to
// confuse us, so we mark all live things first.
std::queue<CFGBlock*> workq;
llvm::SmallVector<CFGBlock*, 20> workq;
llvm::BitVector live(cfg->getNumBlockIDs());
unsigned count = reachable_code::ScanReachableFromBlock(cfg->getEntry(),
live);