From: Dan Gohman Date: Tue, 27 Jan 2009 22:12:23 +0000 (+0000) Subject: Use .empty() instead of comparing .size() with 0. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5f7c41c9d091ad3ac9d0f5ebcf1ef9acd98e4e64;p=oota-llvm.git Use .empty() instead of comparing .size() with 0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63139 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/ScheduleDAGSDNodes.h b/include/llvm/CodeGen/ScheduleDAGSDNodes.h index 52cf4eb998b..8950433062f 100644 --- a/include/llvm/CodeGen/ScheduleDAGSDNodes.h +++ b/include/llvm/CodeGen/ScheduleDAGSDNodes.h @@ -61,7 +61,7 @@ namespace llvm { SUnit *NewSUnit(SDNode *N) { #ifndef NDEBUG const SUnit *Addr = 0; - if (SUnits.size() > 0) + if (!SUnits.empty()) Addr = &SUnits[0]; #endif SUnits.push_back(SUnit(N, (unsigned)SUnits.size()));