1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Use .empty() instead of comparing .size() with 0.

llvm-svn: 63139
This commit is contained in:
Dan Gohman 2009-01-27 22:12:23 +00:00
parent 3685c30b26
commit 953478bd30

View File

@ -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()));