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:
parent
3685c30b26
commit
953478bd30
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user