diff options
author | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-01-29 13:02:09 +0000 |
commit | 70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch) | |
tree | f1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | cf8827a282e6e133d7a153673b1c05c58817d604 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |