diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-13 05:04:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-13 05:04:19 +0000 |
commit | 71d3377010d11567a3b4a2fda0543c6efc85ac3c (patch) | |
tree | d23d66a7a9d9019be494d6dc82c26119e637856f /llvm/lib/Analysis/DataStructure | |
parent | 9d7587238b1bad17847759e96d05f7b39288ebba (diff) | |
download | bcm5719-llvm-71d3377010d11567a3b4a2fda0543c6efc85ac3c.tar.gz bcm5719-llvm-71d3377010d11567a3b4a2fda0543c6efc85ac3c.zip |
Minor code cleanup
llvm-svn: 9962
Diffstat (limited to 'llvm/lib/Analysis/DataStructure')
-rw-r--r-- | llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp index ea4a326fbeb..de83f383c62 100644 --- a/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -94,7 +94,7 @@ unsigned BUDataStructures::calculateGraphs(Function *F, std::vector<Function*> &Stack, unsigned &NextID, hash_map<Function*, unsigned> &ValMap) { - assert(ValMap.find(F) == ValMap.end() && "Shouldn't revisit functions!"); + assert(!ValMap.count(F) && "Shouldn't revisit functions!"); unsigned Min = NextID++, MyID = Min; ValMap[F] = Min; Stack.push_back(F); @@ -260,7 +260,7 @@ void BUDataStructures::calculateGraph(DSGraph &Graph) { if (Callee->isExternal()) { // Ignore this case, simple varargs functions we cannot stub out! - } else if (ReturnNodes.find(Callee) != ReturnNodes.end()) { + } else if (ReturnNodes.count(Callee)) { // Self recursion... simply link up the formal arguments with the // actual arguments... DEBUG(std::cerr << " Self Inlining: " << Callee->getName() << "\n"); |