mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +00:00
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
This commit is contained in:
parent
1bb1d99f23
commit
5f7c41c9d0
@ -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