[mlir] Use .empty() instead of checking size() == 0.

Based on a finding by ClangTidy readability-container-size-empty check.
This commit is contained in:
Adrian Kuegel 2022-01-14 11:58:52 +01:00
parent 350bc5683d
commit cc79d603c9
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ LogicalResult VulkanRuntime::countDeviceMemorySize() {
}
LogicalResult VulkanRuntime::initRuntime() {
if (!resourceData.size()) {
if (resourceData.empty()) {
std::cerr << "Vulkan runtime needs at least one resource";
return failure();
}