Use empty() instead of comparing size() with zero.

llvm-svn: 46514
This commit is contained in:
Dan Gohman
2008-01-29 13:02:09 +00:00
parent cf8827a282
commit 70de4cb1cd
17 changed files with 22 additions and 22 deletions

View File

@@ -1327,7 +1327,7 @@ bool BitcodeReader::ParseFunctionBody(Function *F) {
}
case bitc::FUNC_CODE_INST_RET: // RET: [opty,opval<optional>]
if (Record.size() == 0) {
if (Record.empty()) {
I = new ReturnInst();
break;
} else {