mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 11:17:31 +00:00
Use .empty() instead of .size().
llvm-svn: 95871
This commit is contained in:
parent
83ee8edc66
commit
6e7cc490d4
@ -907,7 +907,7 @@ void DwarfException::EmitExceptionTable() {
|
||||
}
|
||||
|
||||
// Emit the Catch TypeInfos.
|
||||
if (TypeInfos.size() != 0) EOL("-- Catch TypeInfos --");
|
||||
if (!TypeInfos.empty()) EOL("-- Catch TypeInfos --");
|
||||
for (std::vector<GlobalVariable *>::const_reverse_iterator
|
||||
I = TypeInfos.rbegin(), E = TypeInfos.rend(); I != E; ++I) {
|
||||
const GlobalVariable *GV = *I;
|
||||
@ -923,7 +923,7 @@ void DwarfException::EmitExceptionTable() {
|
||||
}
|
||||
|
||||
// Emit the Exception Specifications.
|
||||
if (FilterIds.size() != 0) EOL("-- Filter IDs --");
|
||||
if (!FilterIds.empty()) EOL("-- Filter IDs --");
|
||||
for (std::vector<unsigned>::const_iterator
|
||||
I = FilterIds.begin(), E = FilterIds.end(); I < E; ++I) {
|
||||
unsigned TypeID = *I;
|
||||
|
Loading…
x
Reference in New Issue
Block a user