From: Ted Kremenek Date: Thu, 8 Apr 2010 00:05:00 +0000 (+0000) Subject: Use SmallVector instead of an std::queue. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d75fa6e1c034bf8a335fa8ce1eaf4f08065b3331;p=clang Use SmallVector instead of an std::queue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100730 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/AnalysisBasedWarnings.cpp b/lib/Sema/AnalysisBasedWarnings.cpp index d1f00ca66d..5a06abb1ee 100644 --- a/lib/Sema/AnalysisBasedWarnings.cpp +++ b/lib/Sema/AnalysisBasedWarnings.cpp @@ -25,7 +25,6 @@ #include "clang/Analysis/Analyses/ReachableCode.h" #include "llvm/ADT/BitVector.h" #include "llvm/Support/Casting.h" -#include 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 workq; + llvm::SmallVector workq; llvm::BitVector live(cfg->getNumBlockIDs()); unsigned count = reachable_code::ScanReachableFromBlock(cfg->getEntry(), live);