summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
committerDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
commit70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch)
treef1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parentcf8827a282e6e133d7a153673b1c05c58817d604 (diff)
downloadbcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.tar.gz
bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.zip
Use empty() instead of comparing size() with zero.
llvm-svn: 46514
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineModuleInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp
index 5e6d4cb4961..8aa4c4456ac 100644
--- a/llvm/lib/CodeGen/MachineModuleInfo.cpp
+++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp
@@ -1784,7 +1784,7 @@ void MachineModuleInfo::TidyLandingPads() {
}
// Remove landing pads with no try-ranges.
- if (!LandingPads[i].BeginLabels.size()) {
+ if (LandingPads[i].BeginLabels.empty()) {
LandingPads.erase(LandingPads.begin() + i);
continue;
}
OpenPOWER on IntegriCloud