[llvm-commits] [llvm] r63139 - /llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h
Dan Gohman
gohman at apple.com
Tue Jan 27 14:12:23 PST 2009
Author: djg
Date: Tue Jan 27 16:12:23 2009
New Revision: 63139
URL: http://llvm.org/viewvc/llvm-project?rev=63139&view=rev
Log:
Use .empty() instead of comparing .size() with 0.
Modified:
llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h?rev=63139&r1=63138&r2=63139&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAGSDNodes.h Tue Jan 27 16:12:23 2009
@@ -61,7 +61,7 @@
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()));
More information about the llvm-commits
mailing list