forked from OSchip/llvm-project
[mlir] Use .empty() instead of checking size() == 0.
Based on a finding by ClangTidy readability-container-size-empty check.
This commit is contained in:
parent
350bc5683d
commit
cc79d603c9
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue