projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb1d99
)
Use .empty() instead of comparing .size() with 0.
author
Dan Gohman
<gohman@apple.com>
Tue, 27 Jan 2009 22:12:23 +0000
(22:12 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 27 Jan 2009 22:12:23 +0000
(22:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63139
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/ScheduleDAGSDNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/ScheduleDAGSDNodes.h
b/include/llvm/CodeGen/ScheduleDAGSDNodes.h
index 52cf4eb998b7782537eac4fe8f2daaf0a0b24e9d..8950433062f55d26aa39ca450b10eee6b2313355 100644
(file)
--- 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()));