Use empty() instead of comparing size() with zero.
llvm-svn: 46514
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user