diff --git a/mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp b/mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp index 8f1d23811063..0c41fd274229 100644 --- a/mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp +++ b/mlir/tools/mlir-vulkan-runner/VulkanRuntime.cpp @@ -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(); }